Page 1 of 1

User created actor variables

PostPosted: Wed Jan 10, 2018 7:16 pm
by lcl
Hi!

Does anyone know how GE handles user created actor variables when the game starts? Are they always initialized as 0, or can we not trust in that?

Re: User created actor variables

PostPosted: Thu Jan 11, 2018 3:29 pm
by juansimat
Im assuming you already have experience with C.

Actor variables are part of a struct (type), that is not locally defined, so the standard says that their values must default to 0 (empty the memory they are occupying).

Perhaps you want to have a function that initializes the variables to be sure about their values.

Re: User created actor variables

PostPosted: Thu Jan 11, 2018 9:34 pm
by lcl
Thank you. +1