Home   Help Search Login Register  

Author Topic: Does "var = var + 1" multiply by number of players if in global Radio Trigger ?  (Read 1754 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
???

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
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
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.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Thanks Spooner,

Clear and informative  :)

Laggy
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.