tell when player gotkill?

Post your scripting questions / solutions here

Moderator: Moderators

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

Post by lizardkid »

the death event isnt public in MP.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
oddball
Corporal
Posts: 44
Joined: Tue May 27, 2003 3:49 pm
Contact:

Post by oddball »

i think you can do it with $player[local.i] waittill death
but i could be wrong :)
[VS-UK]Maj.OddBall[BnHQ]
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

lizardkid wrote:the death event isnt public in MP.
that's what i meant, the waittill death doesn't work in MP.

at least, that's what i saw in a couple other posts. i've never tried it myself.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
oddball
Corporal
Posts: 44
Joined: Tue May 27, 2003 3:49 pm
Contact:

Post by oddball »

almost sure it does, the only thing that isn't working, is the dead state. when the player dies, it goes to dead for a very small time, after that it goes back to alive although the player very very dead :)
[VS-UK]Maj.OddBall[BnHQ]
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

it dontmatter.hehe

even if it did or didnt u can check that 30 over ways. but u still cant get who shot from it.
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 »

Exactly.

And it's much simpler to have a script executed when the KILLED state is entered instead of checking for death.

Waittill death doesn't work for players, you've got to use the while (isAlive(local.player)) waitframe stuff.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

ja,. but ppl dont start using state files. i want them for my mods. isalve is just as good :)
Post Reply