initTE.sqf 728 B

123456789101112131415161718192021222324
  1. _vehic = _this;
  2. _vehic setvariable ["impulsorStatus",true,true];
  3. _titlehintimpulsor = "<t color='#E57300' size='2' shadow='1' shadowColor='#000000' align='center'>IMPULSOR</t>";
  4. _texthintimpulsor = "<br /><t color='#00ff00' size='1.4' shadow='1' shadowColor='#000000' align='center'>ON</t>";
  5. hint parseText (_titlehintimpulsor+_texthintimpulsor);
  6. [_vehic, "LAATstart_repulsor"] remoteExec ["say3D", 0, false];
  7. while {((_vehic getvariable ["impulsorStatus",false]) AND (alive _vehic))} do
  8. {
  9. if (speed _vehic <= 600) then {
  10. _vel = velocity _vehic;
  11. _dir = direction _vehic;
  12. _speed = 10;
  13. _vehic setVelocity [
  14. (_vel select 0) + (sin _dir * _speed),
  15. (_vel select 1) + (cos _dir * _speed),
  16. (_vel select 2)
  17. ];
  18. };
  19. sleep 0.5;
  20. };