Home   Help Search Login Register  

Author Topic: Quick question about action and locality  (Read 1414 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Quick question about action and locality
« on: 10 Sep 2011, 21:38:04 »
Hi all,

On a vehicle I have added an action to activate Kegety's spectating script.

In the script I have this: foo = [player, player, "null"] execVM "spect\specta.sqf";

My question is if this will start the script only for the player who performs the action? That is what I want. My fear is if all players start the script when someone else performs the action. That will create chaos. On the Wiki, action is marked as LOCAL and GLOBAL, very confusing. As I can't test this myself I hope someone can tell me how my solution will work. Since no "publicVariable" is broadcasted I guess it will be fine, but I want to be sure before releasing the mission.

Grateful for any help.

Laggy
« Last Edit: 10 Sep 2011, 21:44:21 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.