Page 1 of 1
ai taking dmg?
Posted: Tue May 18, 2004 9:50 pm
by lizardkid
how do i make an ai take damage using a scripted thing, all i can find is
takedamage
makes the specified entity take damage.
what i want to do is hurt or kill some guys in the zone of a bomb after it drops....
health
Posted: Tue May 18, 2004 10:04 pm
by tltrude
Your AI guy should have health. So if you make the explosion entity or a script_origin above it damage things, it should hurt/kill him.
radiusdamage $warhead1_explosion.origin 256 384
Posted: Tue May 18, 2004 10:08 pm
by lizardkid
and explosion damage would be...
$warhead1_explosion.damage 50
would damage him for 50 points?
also do i need a trigger or something for it?
right now i have a plane dropping a bomb into a spherical trigger, so far no problem. but it's intended to hurt/kill some guys near the bomb hits...
bomber.scr
Posted: Tue May 18, 2004 10:15 pm
by tltrude
If you are using the global/bomber.scr, you can put a setthread in the first bomb node (the one closest to the plane's path). It will run the thread when the bomb goes off and you can then do the radiusdamage line for the last node. You can also set off an exploder that way.
Btw, those bombs have built-in damage, if you use the global/bomber.scr.
Posted: Tue May 18, 2004 10:23 pm
by lizardkid
ahhh, okay, i was doing it all manually.
thanx tltrude!