Jump to content
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

Link to comment
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

Link to comment
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! 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...