OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: laggy on 03 Apr 2009, 22:45:44

Title: Does "var = var + 1" multiply by number of players if in global Radio Trigger ?
Post 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
Title: Re: Does "var = var + 1" multiply by number of players if in global Radio Trigger ?
Post by: Spooner on 05 Apr 2009, 21:28:37
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.
Title: Re: Does "var = var + 1" multiply by number of players if in global Radio Trigger ?
Post by: laggy on 06 Apr 2009, 17:04:34
Thanks Spooner,

Clear and informative  :)

Laggy