Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
  • Announcements

    • randomperson139

      Signatures   03/04/2016

      Hi everyone. It appears that the update to the new forum has affected the format of the majority of signatures (adding extra spaces, changing sizes etc.). Due to this, could everyone please check their own signature, ensuring that it complies with the site rules. See the http://www.emergency-planet.com/tos.html/ or http://www.emergency-planet.com/topic/16848-acceptable-signature-sizes/ for more information.  We'll give it a few weeks to give enough time to edit signatures, after that the unnecessarily large signatures will simply be removed. Thanks for your cooperation. Regards, EMP Staff.
Sign in to follow this  
LtChuckSmiley

Adding Units to LASiren.script

Recommended Posts

Hello,

 

I recently added some new vehicles (http://forum.emergency-planet.com/topic/18974-new-la-mod-vehicles-releasedupdate-wip/) to my game, and upon testing it out, I noticed that my units had no siren.

 

After searching around on these forums, I realized that I needed to edit my LASiren script. However, after adding the prototypes to the script, my game keeps crashing every time a siren turns on from one of my added vehicles. The first time it crashed, it said that my "statement [was] too long", so I created a new section on my LASiren script. Now, my game won't load. 

 

I have attached a .txt copy of what I have on my LASiren Script. The vehicles I added are as follows:

  • lasd_taurus
  • lasd_caprice
  • lapd_taurus
  • explorer_lasd
  • dodge_charger_lasd
  • cv_umpc3
  • cv_umpc4
  • cv_lapd_slicktop2
  • chp_suv

Any help would be appreciated. Thank you so much!  :laugh:

LASIREN.txt

Share this post


Link to post
Share on other sites

There were some definite problems there from your copy paste, so it's no wonder it was causing a hard crash.

 

I went and just changed it to an "else" statement for the last few sections with sirens 5 and 6. The old code is still there but commented out if you wish to do it the other way, but this way saves you from having to define all those police vehicles, and makes it so you don't have to add any new vehicles to the script in the future (as long as you want them to use those sirens).

LASIREN.txt

Share this post


Link to post
Share on other sites

There were some definite problems there from your copy paste, so it's no wonder it was causing a hard crash.

 

I went and just changed it to an "else" statement for the last few sections with sirens 5 and 6. The old code is still there but commented out if you wish to do it the other way, but this way saves you from having to define all those police vehicles, and makes it so you don't have to add any new vehicles to the script in the future (as long as you want them to use those sirens).

 

 

Just tried it out, works perfectly. Thank you so much for your help! 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×