Maffegozer Posted May 2, 2010 Report Share Posted May 2, 2010 Hello,I've recently made some changes to LA Mod v2.0.1 + AUS submod.So i've added a Virtual Object (VO) at firestation 1 at a parking spot. same height as that from the other ambulance spots.named it: fs_ambulance05 (actually made more VO's with same name: fs_ambulance06 , 07 etc.)Now i've gotten sofar that i got this:I've changed LAFireStationStart so that it spawns there correctly and that the crew enters the vehicle.But now the problem is.It can't be called by the Batallion Chief.It just buys a other ALS one.It can only be called when you select the vehicle and let it move somewhere.I've figured out that i'd had to change something in: LABatallionChief.scriptbut what?I don't know.So somebody please help me:Vid about my prob: http://www.xfire.com/video/29a579/ Quote Link to comment Share on other sites More sharing options...
Maffegozer Posted May 3, 2010 Author Report Share Posted May 3, 2010 Anyone?Really need the help.-EDIT 3-5-2010 12:50-I've looked at it again.Now i've changed some stuff (added stuff)And hope it will work now...What I did is (in LABattalionChief.script)Added this bit in the beginning:const char VO_AMBULANCE05[] = "fs_ambulance05";a bit further on I've added a bit so it looks like: GameObjectList l1; Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE01, l1, ACTOR_VEHICLE); if(l1.GetNumObjects() > 0) { Vehicle v = l1.GetObject(0); if (!v.HasCommand(DUMMY_VCALLED)) { v.AssignCommand(DUMMY_VCALLED); VehicleCalled = true; } else Ambulance02 = true; } else Ambulance02 = true; } if (!VehicleCalled && Ambulance02) { GameObjectList l2; Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE02, l2, ACTOR_VEHICLE); if(l2.GetNumObjects() > 0) { Vehicle v = l2.GetObject(0); if (!v.HasCommand(DUMMY_VCALLED)) { v.AssignCommand(DUMMY_VCALLED); VehicleCalled = true; } elseAmbulance03 = true; } elseAmbulance03 = true; } if (!VehicleCalled && Ambulance03) { GameObjectList l3; Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE03, l3, ACTOR_VEHICLE); if(l3.GetNumObjects() > 0) { Vehicle v = l3.GetObject(0); if (!v.HasCommand(DUMMY_VCALLED)) { v.AssignCommand(DUMMY_VCALLED); VehicleCalled = true; } elseAmbulance05 = true; } elseAmbulance05 = true; }if (!VehicleCalled && Ambulance05){GameObjectList l5;Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE05, l5, ACTOR_VEHICLE);if(l5.GetNumObjects() > 0){Vehicle v = l3.GetObject(0);if (!v.HasCommand(DUMMY_VCALLED)){v.AssignCommand(DUMMY_VCALLED);VehicleCalled = true;} elseAmbulance04 = true;}ElseAmbulance04 = true;}While pasting this. I think I did something wrong:At the beginning I see the ambulance02 = true bit.But I deleted that at the next few lines of ambulance03.And it isnt at the one I added either.So Im gonna test this now. If it doesn't work that will be the first thing i will fix.-second edit-well tested it.No errors.But it doesnt work.Noticed something that the personel for a other ambulance i placed gets a good run to go to its vehicle:Watch this vid.So i'm gonna fix those things.Hopefully i can.-third edit-Well.Changed the code above to how it is now..Stil doesn't work.I don't know how to fix it now!Anyone please help!-fourth edit-Well people.Just found out.That I can call them with a cop.But still not with the batallion chief...Look at this: Link. Quote Link to comment Share on other sites More sharing options...
Maffegozer Posted May 6, 2010 Author Report Share Posted May 6, 2010 Soo....Nobody knows.That sucks.Please guys Quote Link to comment Share on other sites More sharing options...
Guest bomb123 Posted June 2, 2010 Report Share Posted June 2, 2010 Hello,I've recently made some changes to LA Mod v2.0.1 + AUS submod.So i've added a Virtual Object (VO) at firestation 1 at a parking spot. same height as that from the other ambulance spots.named it: fs_ambulance05 (actually made more VO's with same name: fs_ambulance06 , 07 etc.)Now i've gotten sofar that i got this:I've changed LAFireStationStart so that it spawns there correctly and that the crew enters the vehicle.But now the problem is.It can't be called by the Batallion Chief.It just buys a other ALS one.It can only be called when you select the vehicle and let it move somewhere.I've figured out that i'd had to change something in: LABatallionChief.scriptbut what?I don't know.So somebody please help me:Vid about my prob: http://www.xfire.com/video/29a579/please can you release it?! Quote Link to comment Share on other sites More sharing options...
Guest sondreen Posted June 15, 2010 Report Share Posted June 15, 2010 Just asking here, I'm no pro;Have you edited the LAToFirestation.script so that the new vehicles know where to park?(Should be a tutorial covering every part of creating new vehicles if you just search for it) Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted June 15, 2010 Report Share Posted June 15, 2010 One thing I noticed is you have:GameObjectList l5;Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE05, l5, ACTOR_VEHICLE);if(l5.GetNumObjects() > 0){Vehicle v = l3.GetObject(0);if (!v.HasCommand(DUMMY_VCALLED)){v.AssignCommand(DUMMY_VCALLED);VehicleCalled = true;} elseAmbulance04 = true;}ElseAmbulance04 = true;}Try this:GameObjectList l5;Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE05, l5, ACTOR_VEHICLE);if(l5.GetNumObjects() > 0){Vehicle v = l5.GetObject(0);if (!v.HasCommand(DUMMY_VCALLED)){v.AssignCommand(DUMMY_VCALLED);VehicleCalled = true;} elseAmbulance04 = true;}ElseAmbulance04 = true;}You need to make sure all the l# are changed to 5. I dont know this will fix the problem, but its a step in the right direction. These are easy to miss. Done it several times myself Strange it doesnt complain about a script error though. Have you checked the log file to see if it reports any problems? Also post the whole section regarding object PcmdCallAmbulance : CommandScript. I assume this is between the references to Ambulance03 and 04 VOs? Quote Link to comment Share on other sites More sharing options...
USman Posted June 24, 2010 Report Share Posted June 24, 2010 Im having a simular problem only I changed the HAZMAT truck for the HES and everything works right except for when I call it with the BC. I have checked the scripts above. Where did I go wrong? Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted June 24, 2010 Report Share Posted June 24, 2010 Im having a simular problem only I changed the HAZMAT truck for the HES and everything works right except for when I call it with the BC. I have checked the scripts above. Where did I go wrong?Start your own thread next time. It easier to keep track of things when your not dealing with 2 peoples errors in one thread.Anyways, define what exactly is wrong? I am guessing you hit call Hazmat from the BC and it calls a hazmat from off the map? If so you need to edit LABatallionChief.script and change the pcmdcallhamzat command to call the HES. Quote Link to comment Share on other sites More sharing options...
USman Posted June 24, 2010 Report Share Posted June 24, 2010 okay I will do both things you told me and thanks. Quote Link to comment Share on other sites More sharing options...
mariuswww Posted June 28, 2010 Report Share Posted June 28, 2010 Hello,I've recently made some changes to LA Mod v2.0.1 + AUS submod.So i've added a Virtual Object (VO) at firestation 1 at a parking spot. same height as that from the other ambulance spots.named it: fs_ambulance05 (actually made more VO's with same name: fs_ambulance06 , 07 etc.)Now i've gotten sofar that i got this:I've changed LAFireStationStart so that it spawns there correctly and that the crew enters the vehicle.But now the problem is.It can't be called by the Batallion Chief.It just buys a other ALS one.It can only be called when you select the vehicle and let it move somewhere.I've figured out that i'd had to change something in: LABatallionChief.scriptbut what?I don't know.So somebody please help me:Vid about my prob: http://www.xfire.com/video/29a579/Are the Ambulances set on Standby Mode? Quote Link to comment Share on other sites More sharing options...