Results 1 to 3 of 3

Thread: Weapon Shot Delay

  1. #1
    Me and "ist" have been battling a problem lately. we cant seem to figure out: Is it possible to delay a missile from launching right after pressing the Fire button? Say you mouseclick and the rocket launches only 2 seconds later? Sort of like initTime in cfgAmmo but instead of spitting the rocket out and then launching thrusters mid-air it would just sit and wait for a given time.

    Maybe its possible by means of script?

    Would really appreciate some help




  2. #2
    XEH, firedEH, delete projectile and recreate after the delay.

    Might be a bit complicated and messy though (sounds, performance).




  3. #3
    What type of vehicle is it for? Tank / plane / infantry weapon ?

    Give it two launchers with different ammo.
    a) A dummy launcher and dummy ammo, which the player controls / fires (it's supposed to do nothing, just sit there and look beautiful)
    b) The real launcher with real ammo. But only the magazines are added to the vehicle, not the launcher.

    Then add a fired-eh to the vehicle. There check if the dummy launcher was fired. If yes, wait your desired delay, add the real launcher to the vehicle as well and switch to it from the dummy launcher. Then use the fire command to launch the real missile. Finally remove the real launcher again and switch back to the dummy one.

    Don't know if the lock on a vehicle of the dummy launcher remains for the real one.
    ECS Team - Poweruser

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •