Jump to content

stevenpc66

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by stevenpc66

  1. 2 hours ago, itchboy said:

    I'm afraid it doesnt work this way.

    If I were to do this, I would take a look create a dummy that will wait for 10 seconds, then create a second dummy that will then trigger the siren itself. The first dummy will be called upon in the VcmdSiren script to wait for 10 seconds, then after that, it will execute a new command with the vehicle (the one you are commanding) as the target. In this new command, it will instruct the original dummy to create the actual siren dummy that plays the tone.

    Both of them must be linked to the original vehicle using the userData lines, and the "waiting" dummy must be deleted to give way for the actual siren dummy.

    So i still have to modify in move.script and keep using PushActionWait(), right?

  2. 16 minutes ago, itchboy said:

    Pretty much. The siren script works by creating a dummy object that follows the vehicle. That dummy object is what actually produces the siren sound ingame.

     You will have to rewrite that formula to make the sirens be delayed after pressing the button.

    I added m.PushActionWait(ACTION_APPEND, 10.f) befor Game::ExecuteCommand(CMD_SIREN, &v, &v), but it did not delay time in begin, it delayed when vehicle stopped for 10s =D

  3. Hello everyone,

    I'm trying to modify my mod about the siren, i read through the LASiren.script file, but i don't know how to delay the time before siren raise up. I means when move emergency vehicle to a point, the siren will raise up immediately, but i want the emergency vehicle will move but the siren will come after it moves for a few second. Can i get any intel from you? :D

  4. Hello everyone!

    I have edited LAFirestation.script for a day, basically it looks fine for now, but it still having some bugs. When i raise the alarm then the EMT and BATT_Chief running out the station to the fire engines, then i made the fire engines run on the road but they lost the siren although the Siren button is still lightning up

    - Next bugs is the Alarm sound, it's played as its file duration then it stopped, after a few second to a minutes, the sound keep playing again.

    - Another problems is the fire engines did not auto empty after get back to the Station.

    I checked the script a few time but still not find out which is problem that i'm having. Here is my code, hope to see your help guys.

    LAFireStation.script

    LAToFireStation.script

×
×
  • Create New...