Replacing a vehicle in one of the fire stations
#41
Posted 23 October 2009 - 06:09 AM
- Jon
#42
Posted 23 October 2009 - 06:13 PM
ActorList l7 = Game::GetActors(VO_AMBULANCE01);Shouldn't I just have to replace the number 7 with the numbers for the FF/PM and the FF/PM with stretcher? I tried that though, and I got an error message saying that the script is undefined.
#43
Posted 23 October 2009 - 08:04 PM
- Jon
#45
Posted 24 October 2009 - 02:34 AM
for(int i=0; i < gate08a.GetNumObjects(); i++)
GameObject *gate = gate08a.GetObject(i);
Vector Ambulance04 = l13.GetActor(0)->GetPosition();
Vehicle m = Game::CreateVehicle(OBJ_AMBULANCE01, UNNAMED);
m.EnableBlueLights(false);
m.SetPosition(Ambulance04);
m.SetRotation(gate);
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, 1, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);
try that one
- Jon
#46 Guest_Harpoon731_*
Posted 27 October 2009 - 05:01 PM
I'm just curious as to what proggy you all use to edit the scripts?
Thanks!
#47 Guest_EMTFF_*
Posted 27 October 2009 - 09:58 PM
EDIT: Nevermind, I just downloaded the LA Mod 1.9.2 SG Submod. It pretty much covers everything.
Edited by EMTFF, 28 October 2009 - 03:23 AM.
#48
Posted 28 October 2009 - 07:34 AM
I like Notepad2Hey all,
I'm just curious as to what proggy you all use to edit the scripts?
Thanks!
http://www.flos-free...h/notepad2.html
Load a script file into it, got to view->syntax scheme->C++->click OK. Now edit away.
Technically you can use good ol regular notepad from windows but for scripts, this is much better.
Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#49 Guest_Harpoon731_*
Posted 28 October 2009 - 05:11 PM
I like Notepad2
http://www.flos-free...h/notepad2.html
Load a script file into it, got to view->syntax scheme->C++->click OK. Now edit away.
Technically you can use good ol regular notepad from windows but for scripts, this is much better.
#50
Posted 12 November 2009 - 11:55 PM
I have been able to change all of the scripts. Does anyone know what file I have to go to to put the command go 2 firestation at?
#51
Posted 13 November 2009 - 08:05 AM
Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#53 Guest_JEB90_*
Posted 16 December 2009 - 05:09 PM
#54
Posted 16 December 2009 - 06:09 PM
Executive Director: Forum Child Watch
Think a lot. Say little. Write nothing.
-J.P. Morgan
#55 Guest_JEB90_*
Posted 16 December 2009 - 06:21 PM
to the forums. Can you post your edited script so we can see if there is anything wrong with it.
I actually just reverted it to the original, since I figured I had messed it up.
My error, I think, is that I changed the "const char" line for the hazmat into the HEV prototype...
But now I look at the call HazMat script but I can't figure out where/what to change to make it call the HEV out of the firestation.
Do I need to go in and figure out how to create/change the objects, etc? Or is there a change as simple as with the other scripts?
#56
Posted 24 December 2009 - 04:45 AM
Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.
Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE
If you appreciate my work, then please donate. Every little bit helps!
#57 Guest_Conz_*
Posted 25 December 2009 - 02:19 AM
I've been trying for a while now but I can't seem to get it right, either the game crashes or the spot will just be empty .. that and I have no idea how to add the 'go to firestation' to a vehicle command list.
#58 Guest_MonkeySquasher_*
Posted 16 January 2010 - 08:42 AM
Trying to replace HAZMAT with Ladder Truck. I was able to do it with a previous version, with some tinkering with scripts and virtual objects.
Presently, running v2.0, no other submods. I changed all 4 scripts so that Ladder truck spawns in place of HAZMAT, and works perfectly. However, when I click "return to fire station", it says the station is full and returns to HQ. However, if I move the Ladder truck at Station 1, the Ladder from Station 2 will park there.
My question: Do I have to go into the objects and change them? Basically, enlarge the HAZMAT space to fit the Ladder, create a clone called Ladder2, and have it set to that space, so it doesn't only try to return to Station 1? I did something like that last time, but forgot how I did it. haha
#59
Posted 16 January 2010 - 10:05 AM
#60 Guest_cfde117_*
Posted 26 January 2010 - 02:57 PM
Question:
Trying to replace HAZMAT with Ladder Truck. I was able to do it with a previous version, with some tinkering with scripts and virtual objects.
Presently, running v2.0, no other submods. I changed all 4 scripts so that Ladder truck spawns in place of HAZMAT, and works perfectly. However, when I click "return to fire station", it says the station is full and returns to HQ. However, if I move the Ladder truck at Station 1, the Ladder from Station 2 will park there.
My question: Do I have to go into the objects and change them? Basically, enlarge the HAZMAT space to fit the Ladder, create a clone called Ladder2, and have it set to that space, so it doesn't only try to return to Station 1? I did something like that last time, but forgot how I did it. haha
I have the EXACT same issue as MonkeySquasher... I have been avoiding posting because I enjoy figuring it out for myself, but I have gotten this far and I just cannot figure out how to make the second ladder return to FS2... Am I reading right that it has something to do with using the editor?