sean mccabe Posted July 26, 2018 Report Share Posted July 26, 2018 so i just replaced an engine with another and in the editor i put the command LAToFireStation on the engine but when i get in game it isnt in the command section does anybody know what i did wrong Quote Link to comment Share on other sites More sharing options...
itchboy Posted July 26, 2018 Report Share Posted July 26, 2018 Did you check if the changes you made actually got saved? For reference, try checking the "date modified" of the prototype you edited. What mod are you using by the way? Some mods have a different way of spawning vehicles which can cause commands to not appear. Quote Link to comment Share on other sites More sharing options...
Grim_Wizard Posted July 26, 2018 Report Share Posted July 26, 2018 Due to the nature of the script and how it works you cannot just assign the script to a vehicle in the editor, the vehicles that display the command ingame need to be referenced and defined in the script file itself. This is so the correct vehicle will go to the correct garage at the correct station in freeplay. You can change this by editing the const char values at the start of the script to replace one of the LA Mod vehicles with a vehicle of your choice. const char OBJ_BATTALION[] = "mod:Prototypes/Vehicles/02 LA Fire Department/battalion_chief_vehicle.e4p"; const char OBJ_ENGINE01[] = "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine1.e4p"; const char OBJ_ENGINE02[] = "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine2.e4p"; const char OBJ_USAR[] = "mod:Prototypes/Vehicles/02 LA Fire Department/usar_squad.e4p"; const char OBJ_LADDER[] = "mod:Prototypes/Vehicles/02 LA Fire Department/aerial_ladder.e4p"; const char OBJ_TILLER[] = "mod:Prototypes/Vehicles/02 LA Fire Department/tiller_cabin.e4p"; const char OBJ_BATTALION[] = "mod:Prototypes/Vehicles/02 LA Fire Department/battalion_chief_vehicle.e4p"; const char OBJ_HAZMATSQUAD[] = "mod:Prototypes/Vehicles/02 LA Fire Department/hazmat_squad.e4p"; const char OBJ_AMBULANCE01[] = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance01.e4p"; const char OBJ_AMBULANCE02[] = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance02.e4p"; const char OBJ_AMBULANCE03[] = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance03.e4p"; const char OBJ_AMBULANCE04[] = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance04.e4p"; Change the engine 01 or engine 02 line to the correct path for the prototype you want. Further changes may be required later in the file to anything that references "OBJ_ENGINE01" or "OBJ_ENGINE02". Make sure to keep the command added to the prototype in the editor. Quote Link to comment Share on other sites More sharing options...
sean mccabe Posted July 26, 2018 Author Report Share Posted July 26, 2018 @itchboy the unit was saved correctly i just checked @Grim_Wizard i added the engine to that script and im using west lampeter Quote Link to comment Share on other sites More sharing options...
Grim_Wizard Posted July 26, 2018 Report Share Posted July 26, 2018 Have you made sure to include all referenced menu buttons from the mod? Can you also uploaded the script you edited? Quote Link to comment Share on other sites More sharing options...
sean mccabe Posted July 26, 2018 Author Report Share Posted July 26, 2018 "mod:Prototypes/Vehicles/01Ambulance/Medic 4.e4p"; const char OBJ_AMBULANCE3[] = "mod:Prototypes/Vehicles/01Ambulance/ambulance3.e4p"; const char OBJ_CHIEF1[] = "mod:Prototypes/Vehicles/01Ambulance/bems.e4p"; const char OBJ_CAR2[] = "mod:Prototypes/Vehicles/02Fire/car2.e4p"; const char OBJ_ENGINE1[] = "mod:Prototypes/Vehicles/02Fire/engine8.e4p"; i replaced engine 1 with engine 8 which i added to the mod @Grim_Wizard LAToFireStation.script LAToFireStation.script Quote Link to comment Share on other sites More sharing options...
itchboy Posted July 27, 2018 Report Share Posted July 27, 2018 West Lampeter? Did you make sure you edited the commands of the fire truck that's spawned on the map too? Quote Link to comment Share on other sites More sharing options...
sean mccabe Posted July 27, 2018 Author Report Share Posted July 27, 2018 @itchboy the truck that spawned on the map has the command Quote Link to comment Share on other sites More sharing options...
itchboy Posted July 27, 2018 Report Share Posted July 27, 2018 The only thing I can think of that would cause a command not to show up on the unit is if another command is interfering with the toStation command. See, I did edits to the Lampeter mod that will end up in the next update. In the process, I discovered a few commands that "cancelled" each other and caused them not to show up on the vehicle's command menu. For example, the ToPost and toPoliceStation scripts interfered with each other and wouldn't show up if the both commands were present on the vehicle. I changed the dummyGroup value in the ToPost command and it now appeared on every police unit as seen in the latest NorthernAlex video. So what does this mean for you? Check if there are other commands with the "dummyGroup" value as 32. If they are on the truck, remove them and see if the toStation command appears. Quote Link to comment Share on other sites More sharing options...
sean mccabe Posted July 27, 2018 Author Report Share Posted July 27, 2018 under where it says const char AENGINE_OFF[] it says int DummyGroup = 32; is that were i should look @itchboy Quote Link to comment Share on other sites More sharing options...
sean mccabe Posted July 27, 2018 Author Report Share Posted July 27, 2018 @itchboy i just fixed the problem ur solution pointed me in the right direction! the solution was the commands werent in the correct order i matched the commands the exact way the old engine had it and it worked.Thanks! Quote Link to comment Share on other sites More sharing options...
itchboy Posted July 27, 2018 Report Share Posted July 27, 2018 That's great. I'm glad I was able to guide you to the answer. Quote Link to comment Share on other sites More sharing options...
sean mccabe Posted July 28, 2018 Author Report Share Posted July 28, 2018 @itchboy i have one more question how do i slow down/speedup the rate at which fire grows Quote Link to comment Share on other sites More sharing options...
itchboy Posted July 29, 2018 Report Share Posted July 29, 2018 Go into the Specs folder and edit the materials.xml file. See the highlighted values? The higher they are, the more resistance the object has to catching on fire. Don't set the value too high or the object cannot burn at all. Quote Link to comment Share on other sites More sharing options...
sean mccabe Posted July 29, 2018 Author Report Share Posted July 29, 2018 ok thx Quote Link to comment Share on other sites More sharing options...