CFDDIVE11 Posted February 14, 2014 Report Share Posted February 14, 2014 If I wanted to replace a vehicle in a station with a different one like a ambulance for a battalion chief what would I have to edit? Also what do you have to do to add a new station on the map like add a third one? Thanks in advance!! Quote Link to comment Share on other sites More sharing options...
Alex Burbane Posted February 14, 2014 Report Share Posted February 14, 2014 If you talk to me on SQ55 I can help you, I have done all that myself before, Its just as hard as it dosent seem Quote Link to comment Share on other sites More sharing options...
Darryl Posted February 14, 2014 Report Share Posted February 14, 2014 Tell me if it works! I just edited something. Just give me a call for a backup if needed haha. If you want to edit the cars that are placed, you'll need the 'LAFireStationStart.script' that is located in Platform:\Emergency 4 folder\Mods\Los Angeles Mod v2.1\Scripts\Game\Command. Example:FirestationStart.script - const char VO_AMBULANCE04[] = "fs_ambulance04"; TO const char VO_AMBULANCE04[] = "fs_battalion"; ActorList l13 = Game::GetActors(VO_AMBULANCE04);for(int i=0; i < l13.GetNumActors(); i++){Vector Ambulance04 = l13.GetActor(0)->GetPosition();Vehicle m = Game::CreateVehicle(OBJ_AMBULANCE01, UNNAMED);m.EnableBlueLights(false);m.SetPosition(Ambulance04);m.SetRotation(gate8);m.UpdatePlacement();m.SetMaxPassengers(2);m.SetMaxTransports(1);m.SetSpeed(12.0f);m.PushActionWait(ACTION_NEWLIST, 4.5f);//m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);//m.PushActionWait(ACTION_APPEND, 0.5f);m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 7, false);} To:ActorList l13 = Game::GetActors(VO_AMBULANCE04);for(int i=0; i < l13.GetNumActors(); i++){Vector Ambulance04 = l13.GetActor(0)->GetPosition();Vehicle m = Game::CreateVehicle(OBJ_BATTALION, UNNAMED);m.EnableBlueLights(false);m.SetPosition(Ambulance04); Not sure about this one, tho.m.SetRotation(gate8);m.UpdatePlacement();m.SetMaxPassengers(2);m.SetMaxTransports(0);m.SetSpeed(12.0f);m.PushActionWait(ACTION_NEWLIST, 4.5f);//m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);//m.PushActionWait(ACTION_APPEND, 0.5f);m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 7, false);} Firestation.script - const char VO_AMBULANCE04[] = "fs_ambulance04"; to: const char VO_AMBULANCE04[] = "fs_battalion"; GameObjectList l2; Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE04, l2, ACTOR_VEHICLE);if(l2.GetNumObjects() > 0){Vehicle m = l2.GetObject(0);PersonList passengers = m.GetPassengers();if (passengers.GetNumPersons() == 0){if(StrCompare(m.GetPrototypeFileName(), OBJ_AMBULANCE01) == 0){m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 7, false);//m.PushActionWait(ACTION_APPEND, 0.5f);//m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);} else{m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);m.PushActionWait(ACTION_APPEND, 0.5f);m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);}}} TO: GameObjectList l2; Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE04, l2, ACTOR_VEHICLE);if(l2.GetNumObjects() > 0){Vehicle m = l2.GetObject(0);PersonList passengers = m.GetPassengers();if (passengers.GetNumPersons() == 0){if(StrCompare(m.GetPrototypeFileName(), OBJ_BATTALION) == 0){m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 7, false);//m.PushActionWait(ACTION_APPEND, 0.5f);//m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);} else{m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);m.PushActionWait(ACTION_APPEND, 0.5f);m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);}}} Quote Link to comment Share on other sites More sharing options...
CFDDIVE11 Posted February 14, 2014 Author Report Share Posted February 14, 2014 Thanks guys and Alrx I have no interest of going on squad 55s server I was treated like crap when I was there. Quote Link to comment Share on other sites More sharing options...