Spawning a tank
Moderator: Moderators
Spawning a tank
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?
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