Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Calling the same script file twice
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Calling the same script file twice (Read 1026 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
?
Logged
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
Logged
Chudley
Guest
Re:Calling the same script file twice
«
Reply #2 on:
30 Sep 2002, 02:30:18 »
Yep, Just as Gameer_77 says
Only thing I'll add is ....
"variable" is a Global variable.
"_variable" is a Public variable.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Calling the same script file twice
Top of page