tbones Posted January 11, 2015 Report Share Posted January 11, 2015 How do I make vehicles spawn already in their respective stations on the map in freeplay mode. I have downloaded a couple of mods where you have to call in the units and I dont like doing that as i get behind in the calls coming in. ALso is there a script or something I can enter to have all (police, fire, EMS) calls turned off? Sometimes I wish to just play as police others just as fire ETC. Thanks for the help I Love all the mods you guys are putting out. PS if this is in the wrong section I apologize in advance Quote Link to comment Share on other sites More sharing options...
The Loot Posted January 11, 2015 Report Share Posted January 11, 2015 Spawning vehicles is a large process dealing with LAFireStationStart if based off the LA mod. Here's an example:ActorList Vehicle1 = Game::GetActors(VO_PARKING1); //Checks for certain Virtual Object on mapfor(int i=0; i < Vehicle1.GetNumActors(); i++){ Vector Spawn1 = Vehicle1.GetActor(0)->GetPosition(); //Create a spawn point at Virtual Object position Vehicle m = Game::CreateVehicle(VEH_UNIT1, "Unnamed"); //Define vehicle to spawn and its name. m.EnableBlueLights(false); //Set flashing lights off m.EnableHeadLights(false); //Set vehicle lights off m.SetPosition(Spawn1); //Places vehicle at spawn m.UpdatePlacement(); //As above m.SetMaxPassengers(2); //Set max passengers m.SetMaxTransports(1); //Set max transports m.SetSpeed(12.0f); //Set speed}You'll need to define things like "VO_PARKING1" and "VEH_UNIT1" as constants at the top of the script file. As for disabling certain events in freeplay, open the "fp_params_endless.xml" file, find the event you want to disable, and change "Enabled value" to 0. Quote Link to comment Share on other sites More sharing options...
tbones Posted January 11, 2015 Author Report Share Posted January 11, 2015 So I would put the obj file in those places? sorry not good with modding at all lmao Thanks do much for the quick help Quote Link to comment Share on other sites More sharing options...
The Loot Posted January 11, 2015 Report Share Posted January 11, 2015 The only "object" is the "virtual object", which are certain blue boxes placed on the map. I'd suggest taking a look at some editor tutorials to get started with that. Quote Link to comment Share on other sites More sharing options...
tbones Posted January 11, 2015 Author Report Share Posted January 11, 2015 Yea way out of my area of knowledge lmao I'd prolly blow up the game somehow *game loads* massive nuclear explosion lolI think I'll tinker with the opening call and push it back till after I'm able to get the units on the map thanks tho:) Quote Link to comment Share on other sites More sharing options...