Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Does "var = var + 1" multiply by number of players if in global Radio Trigger ?  (Read 2772 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.