F
Facet
Guest
Hello
I'm trying to save instance information to ds_list, and everything works well, but some problems with variables.
I want to add variable only if exists and trying something like this:
I'm sure I'm wrong, but how to do it properly?
Thank you ++
I'm trying to save instance information to ds_list, and everything works well, but some problems with variables.
I want to add variable only if exists and trying something like this:
Code:
if !is_undefined(inst.hp)
ds_list_add(list, inst.hp);
Thank you ++