Jump to content
killednemo65

how to make vehicles spawn in with siren from menu? LA MOD

Recommended Posts

i know if you hold shift while spawning vehicles, they will come into map without siren and lights. But how do i make them spawn in with sirens and lights IN CAMPAIGN? currently they spawn in with just lights. Is there something i must edit in parameters? Also, what does the Vehicle - Introduction mean in game settings? i can check it ON/OFF

 

-Thanks

Link to comment
Share on other sites

First...the vehicle introduction is simply that side menu that introduces each vehicle when you select them in the send vehicle menu.

Second...for your main problem of making the sirens work in campaign, that would require a change to EACH mission script which would probably involve something like this. (DON'T MODIFY YOUR SCRIPTS UNLESS YOU KNOW WHAT YOU ARE DOING!)

void OnSquadVehicleArrived(Vehicle *v)
{
    if (v->HasCommand("VcmdSiren"))
    {
        Vehicle veh = *v;
        Game::ExecuteCommand("VcmdSiren", &veh, &veh);
    }
}

Link to comment
Share on other sites

Nope....only works in mission scripts.

For freeplay, you would have to create a looping script that checks the spawnpoints for any emergency vehicles with siren commands and then activates the siren command in these vehicles. It would have to check a group of VO's that are positioned where the vehicles spawn so that it will only activate their commands and not the sirens of every emergency car in the whole map.

I actually have a "partially" working version. PM for information.

Link to comment
Share on other sites

  On 6/23/2014 at 1:19 PM, The Loot said:

Could be useful, though I'm in the process of completely eliminating the vehicle menus in my freeplay and relying on the call scripts for both replacement and additional vehicles. That way I can limit it to one of each vehicle, and have spawn delays.

I like the sound of this! Is this really complicated to get working?

Link to comment
Share on other sites

Here's the "buy" section of my ALS RA script. If you are missing one of the on-map vehicles, it will replace those instead of off-map ones.

  Reveal hidden contents

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...