Scripting in custom models/building's/brushes/etc.

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
General_DisArray
Warrant Officer
Posts: 142
Joined: Tue Dec 17, 2002 4:17 am
Location: magnolia, texas

Scripting in custom models/building's/brushes/etc.

Post 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
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
General_DisArray
Warrant Officer
Posts: 142
Joined: Tue Dec 17, 2002 4:17 am
Location: magnolia, texas

Post 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.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
User avatar
General_DisArray
Warrant Officer
Posts: 142
Joined: Tue Dec 17, 2002 4:17 am
Location: magnolia, texas

Post by General_DisArray »

answers my question. thanks.
Post Reply