Static Model

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
AfterDeath
Corporal
Posts: 26
Joined: Fri Apr 09, 2004 4:34 am
Contact:

Static Model

Post by AfterDeath »

I am using a very simple script to spawn a V2 rocket into a map.
local.v2 = spawn script_model
local.v2 model "static/v2.tik"
local.v2.origin = ( 224 96 50 )
local.v2.angle = 45
local.v2.scale = 0.8
local.v2 alwaysdraw
local.v2 notsolid
However, I am having some trouble as the rocket doesn't always get the correct light effects added to it. I've come to realize it has to do with the origin height. If I make it -10, the rocket looks like it should, however the lighting effects get screwed up if I try to place it any higher than that (which I would like to do).

Any ideas please? :? Thanks!
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

well only thing i can think of is this,

is it over your skybox? if it is strange things happen
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Script_object

Post by tltrude »

Try spawning it as a script_object, although it may not be solid.
Tom Trude,

Image
Post Reply