Page 1 of 1
Scripting in custom models/building's/brushes/etc.
Posted: Fri Aug 22, 2003 7:47 pm
by General_DisArray
i have built my map and debugged it and it plays fine. but say i wanted to add in a windmill or building or something else that i built in the editor. what do i need to do?
other than getting the coordinates and all. i have the coordinates but need to know what files i need to create and where to put the scripting in my scr file.
tnx
Gen Dis
Posted: Sat Aug 23, 2003 1:31 am
by nuggets
why not just make it in radiant
if you do it this way, then you can hide it in script by making it a script object
Posted: Mon Aug 25, 2003 2:03 pm
by General_DisArray
i probably will, but just wanted to know how to do it instead of re-compiling. i have played the modded original MOHAA and SH maps and thought that is pretty cool.
Posted: Mon Aug 25, 2003 2:47 pm
by bdbodger
You can spawn models but not prefabs
spawn vehicles/jeep.tik "targetname" "playerjeep"
$playerjeep.origin = ( 1068.17 -897.13 -71.88 )
$playerjeep.angle = 270
you can get the origin by typeing coord into the console when you are playing the map that will tell you where you are in the map . Just put it in the level script somewhere near the top before level waittill spawn is ok .
Posted: Mon Aug 25, 2003 3:59 pm
by General_DisArray
answers my question. thanks.