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

Title: How do u add buildings with out .......
Post 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:
Title: Re:How do u add buildings with out .......
Post by: vektorboson on 29 Sep 2002, 23:05:58
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)
Title: Re:How do u add buildings with out .......
Post by: US-NATO_Term on 29 Sep 2002, 23:45:31
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
Title: Re:How do u add buildings with out .......
Post by: Chudley on 29 Sep 2002, 23:51:30
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
Title: Re:How do u add buildings with out .......
Post by: Sui on 30 Sep 2002, 06:07:23
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 ;)
Title: Re:How do u add buildings with out .......
Post by: US-NATO_Term on 30 Sep 2002, 23:41:34
where do u put that line in?? plz dont say a script. plz say a trigger or something? would it be a gamelogic trigger?
Title: Re:How do u add buildings with out .......
Post by: icarus_uk on 30 Sep 2002, 23:50:45
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.
Title: Re:How do u add buildings with out .......
Post by: US-NATO_Term on 01 Oct 2002, 23:17:07
annnnnnnnnd how do i do that lol
Title: Re:How do u add buildings with out .......
Post by: _54th_Yoshi on 01 Oct 2002, 23:23:12
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.
Title: Re:How do u add buildings with out .......
Post by: Guru on 04 Oct 2002, 07:02:14
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
Title: Re:How do u add buildings with out .......
Post by: US-NATO_Term on 05 Oct 2002, 16:27:29
sweeeet   8) thx,  :cheers: :toocool:
Title: Re:How do u add buildings with out .......
Post by: US-NATO_Term on 05 Oct 2002, 23:55:45
works like a charm man, u da man!!!!! 8)