Arma 3 Code Dump: Difference between revisions

From Benargee's Wiki
Jump to navigation Jump to search
(Get position of screen center)
No edit summary
Line 1: Line 1:
{{arma3}}
===Spawn in flying jet===
===Spawn in flying jet===
posi376 = [(getpos player) select 0, getpos player select 1, (getpos player select 2) + 400]; <br>
posi376 = [(getpos player) select 0, getpos player select 1, (getpos player select 2) + 400]; <br>
vehicle648 = createVehicle ["B_Plane_CAS_01_F", posi376, [], 0, "FLY"]; <br>
vehicle648 = createVehicle ["B_Plane_CAS_01_F", posi376, [], 0, "FLY"]; <br>
player moveInDriver vehicle648; <br>
player moveInDriver vehicle648; <br>
[[Category:Arma 3]]
 


===Get position of screen center===
===Get position of screen center===
''Similart to cursorTarget''<br>
''Similart to cursorTarget''<br>
screenToWorld [0.5, 0.5];
screenToWorld [0.5, 0.5];

Revision as of 16:49, 5 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

Similart to cursorTarget
screenToWorld [0.5, 0.5];