Replacing a vehicle in one of the fire stations
#41
Gepost 23 oktober 2009 - 06:09
- Jon
#43
Gepost 23 oktober 2009 - 08:04
- Jon
#45
Gepost 24 oktober 2009 - 02:34
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_*
Gepost 27 oktober 2009 - 05:01
I'm just curious as to what proggy you all use to edit the scripts?
Thanks!
#47 Guest_EMTFF_*
Gepost 27 oktober 2009 - 09:58
EDIT: Nevermind, I just downloaded the LA Mod 1.9.2 SG Submod. It pretty much covers everything.
Deze post is bewerkt door EMTFF: 28 oktober 2009 - 03:23
#48
Gepost 28 oktober 2009 - 07:34
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_*
Gepost 28 oktober 2009 - 05:11
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
Gepost 12 november 2009 - 11:55
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
Gepost 13 november 2009 - 08:05
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_*
Gepost 16 december 2009 - 05:09
#54
Gepost 16 december 2009 - 06:09
Executive Director: Forum Child Watch
Think a lot. Say little. Write nothing.
-J.P. Morgan
#55 Guest_JEB90_*
Gepost 16 december 2009 - 06:21
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
Gepost 24 december 2009 - 04:45
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_*
Gepost 25 december 2009 - 02:19
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_*
Gepost 16 januari 2010 - 08:42
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
Gepost 16 januari 2010 - 10:05
#60 Guest_cfde117_*
Gepost 26 januari 2010 - 02:57
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?