Killer detect, attacker detect, damage and stopping (phew ;)

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Killer detect, attacker detect, damage and stopping (phew ;)

Post by Rookie One.pl »

Hi,

Next load of noob questions :twisted:

1. Jv_map once told me how to detect AI's killer. Is it possible to detect who attacked the AI, even if the AI is still alive?
2. Can I use damage command to hurt the player? If the player is killed, what sort of message will be shown in MP? 'Player died'?
3. Will stop command stop an AI when it's running (runto command)?

Thanks in advance,

Rookie One
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

1. Yes - use the same method as for a killed AI.
2. Yes - I think you'll see '... blew up'.
3. Nope, use runto NULL.
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

:)

Post by Rookie One.pl »

1. So if an AI is just hurt, bu not killed, the killer is stored in $ai.fact.killer, too?
2. Blew up? It's weird, isn't it? :?
3. Thanks 8) .
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

$ai.fact.attacker :wink:
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Aha!

Post by Rookie One.pl »

Thanks 8) .
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply