Spawning a tank

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
lin
Private
Posts: 2
Joined: Sat Aug 09, 2003 5:30 am

Spawning a tank

Post 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?
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post 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
Post Reply