Page 1 of 1

Spawning a tank

Posted: Sat Aug 09, 2003 5:37 am
by lin
I have spawned a tank through scripting and it is solid. What do I need to add to the script so you can't shoot through it and use it for cover?

Posted: Sat Aug 09, 2003 5:41 am
by Alcoholic
when you say solid, do you mean you cant pass through the bounding box? to make a accuracte collision would be complicated through script, but anyways, you have to spawn brushes on the tank. An example would be this

Code: Select all

local.blocko = spawn script_object
local.blocko setsize (0 0 0) (92 92 92) //92x92x92
local.blocko.origin = $mytank.origin
local.blocko.angles = $mytank.angles