User created actor variables

You must understand the Game Editor concepts, before post here.

User created actor variables

Postby lcl » Wed Jan 10, 2018 7:16 pm

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?
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: User created actor variables

Postby juansimat » Thu Jan 11, 2018 3:29 pm

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.
̿̿¯̿̿¯̿̿'̿̿̿̿̿̿̿'̿̿'̿̿̿̿̿'̿̿̿)͇̿̿)̿̿̿̿ '̿̿̿̿̿̿\̵͇̿̿\з=(๏̯͡๏)=ε
User avatar
juansimat
 
Posts: 152
Joined: Sat Dec 19, 2009 8:23 am
Score: 27 Give a positive score

Re: User created actor variables

Postby lcl » Thu Jan 11, 2018 9:34 pm

Thank you. +1
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron