mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
508 B
Plaintext
20 lines
508 B
Plaintext
//eject_illum.sqf
|
|
private["_shell", "_velocity", "_pos", "_flareChute", "_chuteVel"];
|
|
|
|
_shell = _this select 6;
|
|
|
|
_velocity = velocity _shell;
|
|
|
|
_pos = getPos _shell;
|
|
|
|
_flareChute = "ace_arty_105mm_m314a3_m782_parachute" createVehicle _pos;
|
|
_flareChute setPos _pos;
|
|
////player sideChat format["chutPos: %1", _pos];
|
|
_chuteVel = [_velocity,0.25] call ACE_fnc_vectorMultiply;
|
|
////player sideChat format["p: %1", (_chuteVel call CBA_fnc_vect2Polar)];
|
|
|
|
_flareChute setVelocity _chuteVel;
|
|
|
|
|
|
|
|
false |