Arma 3 Code Dump: Difference between revisions

From Benargee's Wiki
Jump to navigation Jump to search
No edit summary
Line 12: Line 12:
===Add all players to curator===
===Add all players to curator===
_curator addCuratorEditableObjects [playableUnits, true]
_curator addCuratorEditableObjects [playableUnits, true]
===Add virtual arsenal to player or object===
null = ["AmmoboxInit",[this,true,{true}]] spawn BIS_fnc_arsenal; <br>
See: [https://community.bistudio.com/wiki/BIS_fnc_arsenal BIS_fnc_arsenal BIKI]

Revision as of 05:38, 15 March 2015

Spawn in flying jet

posi376 = [(getpos player) select 0, getpos player select 1, (getpos player select 2) + 400];
vehicle648 = createVehicle ["B_Plane_CAS_01_F", posi376, [], 0, "FLY"];
player moveInDriver vehicle648;


Get position of screen center

Similar to cursorTarget
screenToWorld [0.5, 0.5];

Add all players to curator

_curator addCuratorEditableObjects [playableUnits, true]

Add virtual arsenal to player or object

null = ["AmmoboxInit",[this,true,{true}]] spawn BIS_fnc_arsenal;
See: BIS_fnc_arsenal BIKI