OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: laggy on 10 Sep 2011, 21:38:04

Title: Quick question about action and locality
Post by: laggy 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