123456789101112131415161718 |
- _pelican = _this;
- _pelican setvariable ["OPTRE_Thruster_EngagedStatus",true,true];
- _pelican setobjecttextureglobal [1,"optre_vehicles\pelican\data\bolt_blue_ca.paa"];
- hint "ENGAGING FORWARD THRUSTERS";
- while {((_pelican getvariable ["OPTRE_Thruster_EngagedStatus",false]) AND (alive _pelican))} do
- {
- if (speed _pelican <= 600) then {
- _vel = velocity _pelican;
- _dir = direction _pelican;
- _speed = 10;
- _pelican setVelocity [
- (_vel select 0) + (sin _dir * _speed),
- (_vel select 1) + (cos _dir * _speed),
- (_vel select 2)
- ];
- };
- sleep 0.5;
- };
|