Is it possible to spawn firetruck and ambulance?
-
I'm trying to see where in OpenIV I can spawn an ambulance and firetruck when a incident occurs or if that's possible. I looked at dispatch.meta and didn't have any luck.
-
@noplaymaker
Should be in 'dispatch.meta' with the various parts for the Firetruk & Ambulance looking something like this:<EmergencyResponses>:
<EmergencyResponses> <Item> <DispatchType>DT_FireDepartment</DispatchType> <!-- dispatch type, fire --> <NumPedsToSpawn value="4"/> <DispatchVehicleSets> <Dispatch>FIRE_TRUCK</Dispatch> <!-- what vehicle section in '<Vehiclesets>' (below) is used --> </DispatchVehicleSets> </Item> <Item> <DispatchType>DT_AmbulanceDepartment</DispatchType> <NumPedsToSpawn value="2"/> <DispatchVehicleSets> <Dispatch>AMBULANCE</Dispatch> </DispatchVehicleSets> </Item> </EmergencyResponses>
<VehicleSets>:
<VehicleSets> <Vehicle> <Name>AMBULANCE</Name> <ConditionalVehicleSets> <Item> <VehicleModels> <Vehicle>ambulance</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_M_Paramedic_01</Ped> </PedModels> </Item> </ConditionalVehicleSets> </Vehicle> <Vehicle> <Name>FIRE_TRUCK</Name> <!-- vehicle section called in 'DT_FireDepartment' > '<DispatchVehicleSets>' > '<Dispatch>' line above--> <ConditionalVehicleSets> <Item> <VehicleModels> <Vehicle>firetruk</Vehicle> <!-- vehicle that spawns --> </VehicleModels> <PedModels> <Ped>S_M_Y_Fireman_01</Ped> <!-- peds that spawn with vehicle --> </PedModels> </Item> </ConditionalVehicleSets> </Vehicle> </VehicleSets>
<DispatchOrderDistances>:
<DispatchOrderDistances> <Item> <DispatchType>DT_FireDepartment</DispatchType> <OnFootOrderDistance value="200.0"/> <MinInVehicleOrderDistance value="350.0"/> <MaxInVehicleOrderDistance value="350.0"/> </Item> <Item> <DispatchType>DT_AmbulanceDepartment</DispatchType> <OnFootOrderDistance value="200.0"/> <MinInVehicleOrderDistance value="350.0"/> <MaxInVehicleOrderDistance value="350.0"/> </Item> </DispatchOrderDistances>
SpawnDelayMin/Max:
<AmbulanceSpawnDelayMin> <SLOW value="35.0"/> <MEDIUM value="15.0"/> <FAST value="15.0"/> </AmbulanceSpawnDelayMin> <AmbulanceSpawnDelayMax> <SLOW value="45.0"/> <MEDIUM value="25.0"/> <FAST value="25.0"/> </AmbulanceSpawnDelayMax> <FireSpawnDelayMin> <SLOW value="35.0"/> <MEDIUM value="15.0"/> <FAST value="15.0"/> </FireSpawnDelayMin> <FireSpawnDelayMax> <SLOW value="45.0"/> <MEDIUM value="25.0"/> <FAST value="25.0"/> </FireSpawnDelayMax>
I removed the other vehicle values that have nothing to do with the firetruk & ambulance, so things will look a little different for you in 'dispatch.meta', but those are all the parts that need to be in place for the firetruk & ambulance to respond to accidents etc & fires.