Adding a model to a map via the map.script


(=SC=Beef) #1

I know this is possible, ive seen it done, however that was ages ago and now i have forgot.

There is basicaly a model of a truck that has 27md3’s to make it up that i want to insert into a map, using the map.script file and make it a solid so you cant run through it.

Any help is appreciated


(kamikazee) #2

Making a solid, moveable model is impossible, but there is a workaround by using a set of clip brushes and a non-solid model.


(=SC=Beef) #3

Not moveable, Just like an object


(Ragnar_40k) #4

http://wolfwiki.anime.net/index.php/Map_scripting#Scripting_Examples_by_duke.27ku

And then add fakebrushes that built a hull around the truck for clipping.


(kamikazee) #5

That’s only worth using if you can only modify the script and not the map source. Is this the case here, or are you building a map?


(=SC=Beef) #6

Ok, i get something like 'Unknown command, error in script ‘Create’ "

It doesnt understand ‘Create’ i tried with etpro, etmain and etpub

Ill have another go tomoz…

create
{
scriptname “plant1”
origin “-901 -3145 64”
classname “misc_gamemodel”
modelscale 1
contents 1
mins “-90 -90 -25”
maxs “90 90 25”
clipmask 1
model “models/mapobjects/plants_sd/catalifoliage.md3”
}


(sodsm live) #7

create
{
scriptname “plant1”
origin “-901 -3145 64”
classname “misc_gamemodel”
modelscale 1
contents 1
mins “-90 -90 -25”
maxs “90 90 25”
clipmask 1
model “models/mapobjects/plants_sd/catalifoliage.md3”
}

i won’t be much help on this but i can say keep an eye on your spelling

BTW Beef, i usually play at evilsmurfs.com but i’ve checked out SC in the past. ever since then, if i hit ‘escape’ and click on ‘disconnect’ while on a server, the ET game menu turns in to the SC custom menu and i start getting UI errors in the console. any idea how to fix it?