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
) »
One Variables for several scripts? How to?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: One Variables for several scripts? How to? (Read 424 times)
0 Members and 1 Guest are viewing this topic.
jens198
Former Staff
Falcon 3.0 forever!
One Variables for several scripts? How to?
«
on:
23 Jul 2003, 12:16:22 »
Hi,
I have on variable called "_s". Several independent scripts should add up on this variable? How do I accomplish that?
Thanks
Jens
Logged
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!
LCD
Former Staff
Re:One Variables for several scripts? How to?
«
Reply #1 on:
23 Jul 2003, 12:20:12 »
u remove da _ from it
LCD OUT
Logged
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing -
O-Team Beta
macguba
Former Staff
Re:One Variables for several scripts? How to?
«
Reply #2 on:
23 Jul 2003, 15:48:04 »
Variables starting with _ are local to the script in which they occur. Other variables are global and apply to all scripts, triggers, waypoints etc.
_s = local
s = global
Logged
Plenty of
reviewed ArmA missions
for you to play
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
) »
One Variables for several scripts? How to?
Top of page