Jimmakos 168 Posted September 29, 2016 How is it possible to add an action on more than one playable units? I want to add a simple action not only to the player but on other playable units as well. So i don't have to repeat the "player1 AddAction" also for "player2 AddAction" also for "player3 AddAction" and so on. Share this post Link to post Share on other sites
davidoss 550 Posted September 29, 2016 {_x addAction ["Exec the file", "somescript.sqf"]} forEach (if (isMultiplayer) then {playableUnits} else {switchableUnits}); 1 Share this post Link to post Share on other sites
Jimmakos 168 Posted September 29, 2016 {_x addAction ["Exec the file", "somescript.sqf"]} forEach (if (isMultiplayer) then {playableUnits} else {switchableUnits}); Worked like a charm, thanks! Share this post Link to post Share on other sites