ai taking dmg?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

ai taking dmg?

Post 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....
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

health

Post 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
Tom Trude,

Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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...
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

bomber.scr

Post 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.
Tom Trude,

Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

ahhh, okay, i was doing it all manually.
thanx tltrude!
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply