OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: US-NATO_Term on 29 Sep 2002, 22:57:08
-
I know there is something that teaches u how to add buildings with out an editor upgrade but i dont know hwre it is. So how do u add buildings in a game with out using editor upgrades, cz i wanna make a map with buildings that everyone can play with out any addons :) plz :gunman: :help:
-
That's very nice because I hate the Editor Addons as they fill the listboxes with stuff that I never need!
The command you need is createVehicle, look for it in a reference. What you need is a complete list that lists all class names of the buildings (i.e. the unofficial comref which has an object class tree)
-
anyone know where the tutorial is on this site, cuz i remeber readin it once but back then i didnt understand that stuff. and i remeber it giving all the buildings with names and pics for them
-
I have the unofficial ComRef in .pdf format (Adobe Acrobat).
Gimme your e-mail and I'll send it by the way.
Or I THINK it's in the tutorial section of the editing depot.
:D
-
What you want to do is grab the Resistance House list (http://www.ofpec.com/editors/tutorial_cat.php?id=3) to get the names of buildings.
Then you simply use:
bld = "buildingname" createvehicle position
To put the building where you want it. You can also use:
bld setdir direction
to rotate it to your satisfaction ;)
-
where do u put that line in?? plz dont say a script. plz say a trigger or something? would it be a gamelogic trigger?
-
Preferably put it in the init so it shows at the start of the mission without a delay.
You can of course alter the sqm file, changing the vehicle to that of a house name and the house name will show instead of the unit you placed in.
-
annnnnnnnnd how do i do that lol
-
Has anyone figured out how to add street lights with out the use of an addon? I have been looking for how to do it, but i can't find it.
-
well i use civillians placed where i want building to be, then save.
-
then alt-tab out of editor
-
goin to mission folder u just saved
-
and find mission.sqm
-
open it with note pad and find ur civilian in the list and change the vehicle name ie:civilian an change it to building name.
once u find that list of names of coarse
-
thens save.
-
then go to the editor again using alt-tab
-
and load mission again, so it changes the civy to a building
thats it!!!
-
how ever if u double click the building an hit ok it will change him back to a civy----- which means u gotta go back in an change the .sqm again thats all.
-
hope that explains it ;D
-
sweeeet 8) thx, :cheers: :toocool:
-
works like a charm man, u da man!!!!! 8)