Home   Help Search Login Register  

Author Topic: Calling the same script file twice  (Read 917 times)

0 Members and 1 Guest are viewing this topic.

True Immortal

  • Guest
Calling the same script file twice
« on: 29 Sep 2002, 22:27:09 »
i have a script which i've test on one unit.
once i apply it on two units it doesnt work.

the script has a loop that runs through out the mission.

i'm guessing the vars collide.

what can i do?
is there a diffrence between using varName to _varName?

Gameer_77

  • Guest
Re:Calling the same script file twice
« Reply #1 on: 30 Sep 2002, 00:17:13 »
By using _VarName that makes the value only applicable to the script its made in. VarName makes it globally available.

Use a _VarName is you want to run the script twice.

 8)PEACE

Chudley

  • Guest
Re:Calling the same script file twice
« Reply #2 on: 30 Sep 2002, 02:30:18 »
Yep, Just as Gameer_77 says :D

Only thing I'll add is ....

"variable" is a Global variable.

"_variable" is a Public variable.