Spawn Solid Models Cod4

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
User avatar
Opel
CJ Fan
CJ Fan
Posts: 188
Joined: September 15th, 2008, 12:28 pm
Location: Scotland

Spawn Solid Models Cod4

Post by Opel » August 13th, 2010, 8:19 am

Hey what im trying to do is spawn a model on normal map. I can get it to spawn but you can walk through it. Im wondering if its is possible to make it solid.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Spawn Solid Models Cod4

Post by Drofder2004 » August 13th, 2010, 7:05 pm

Not exactly possible. There are work arounds that produce some crap results through the use of "setcontents()" command.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Opel
CJ Fan
CJ Fan
Posts: 188
Joined: September 15th, 2008, 12:28 pm
Location: Scotland

Re: Spawn Solid Models Cod4

Post by Opel » August 14th, 2010, 8:38 am

I actually tried setcontents i rember reading it on modsonline but it didnt work. It spawned model but was still Non solid. I tried it like this

Code: Select all


statue = spawn("script_model", -5, 52, 60);
statue setmodel("me_statue");
statue setcontents(1);


User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Spawn Solid Models Cod4

Post by Drofder2004 » August 14th, 2010, 1:11 pm

I have never done it myself, just been told of it. I have been told it produces very bad results and so I never bothered.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests