Posted By: Nowherebrain
skills and local variables treated as global - 04/27/08 14:20
sorry for double posting(I origionaly posted this in a thred dedicated to something else)
I'm having another pointer issue.
__________________________________
4 entitys share the same action.
In a separate function I set one to speaker(pointer) and the rest to non_speaker(again, pointer)by testing their vec_dist to the player.
if I set speaker.skill1 to any number, all the ents with the same action get the same value for skill1...regardless of their pointer
___________________________________
Is this a bug or am I doing something wrong here, have pointers changed(how)...under lite-c?
skill1 is being treated like a global variable here, I noticed it states something like this in the manual. Does anyone know a workaround/method?
I'm having another pointer issue.
__________________________________
4 entitys share the same action.
In a separate function I set one to speaker(pointer) and the rest to non_speaker(again, pointer)by testing their vec_dist to the player.
if I set speaker.skill1 to any number, all the ents with the same action get the same value for skill1...regardless of their pointer
___________________________________
Is this a bug or am I doing something wrong here, have pointers changed(how)...under lite-c?
skill1 is being treated like a global variable here, I noticed it states something like this in the manual. Does anyone know a workaround/method?