Arma 3 Code Dump
Revision as of 00:52, 27 March 2015 by Benargee (talk | contribs) (→Add virtual arsenal to player or object)
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
Fired bullet info
player addEventHandler ["fired", {hintSilent format ["0 = %1\n1 = %2\n2 = %3\n3 = %4\n4 = %5\n5 = %6\n",_this select 0,_this select 1,_this select 2,_this select 4,_this select 5,_this select 6]}]