OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: laggy on 03 Apr 2009, 22:45:44
-
???
Does it and is the only solution to have a script created trigger instead ?
What if I have:
Condition: this AND player == leader player
Does the variable then only change for that player ?
My concern is to not multiply the + 1 by number of players, with a preferably global trigger, because hints for all players are involved.
Laggy
-
No, it does not multiply, since the variables in question are normal global, not networked global ("publicVariable") variables. This means they exist across all scripts on a given machine, not across all machines. Thus, the addition will occur once on every machine affecting the variable on that machine only.
In fact, a single editor-placed, "global" trigger has exactly the same effect as having script-created, "local", triggers on every machine.
-
Thanks Spooner,
Clear and informative :)
Laggy