Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: DeletedUser on July 31, 2013, 07:03:10 pm
Title: Reading a value from dvar like "ugxm_players"
Post by: DeletedUser on July 31, 2013, 07:03:10 pm
So I got the objective system planned and some of it scripted and the problem is when I want a character to say something which depends on this how many players are there. I tried if(ugxm_players==1){ *chunk of code* } and it says variable ugxm_players not initialised. I need help with that.
Title: Re: Reading a value from dvar like "ugxm_players"
Post by: SajeOne on July 31, 2013, 07:08:37 pm
Well is that variable initialized? If I needed to check something like that I would do: