ItsMods

Full Version: self waittill("KILL");
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In mw2 there was this self waittill("killed_enemy");
but in bo this doesnt work, someone know the notify when you kill a enemy?
You can put a eAttacker notify("lemonized") under codecallbackplayerkilled in _callbacksetup.gsc.
self waittill("killed_player");
(07-19-2011, 01:25)AZUMIKKEL Wrote: [ -> ]self waittill("killed_player");

Yeah, that's better.
(07-19-2011, 01:25)AZUMIKKEL Wrote: [ -> ]self waittill("killed_player");

Doesn't that get notified when the player dies, not when they kill an enemy?

Lemon's way is good, "eAttacker notify("killed_enemy", self);" I just added the 'self' so that you know who the attacker actually killed.
self waittill("killed_player");

if eattacker == self


etc etc
(07-19-2011, 08:30)Phl3x_ Wrote: [ -> ]
(07-19-2011, 01:25)AZUMIKKEL Wrote: [ -> ]self waittill("killed_player");

Doesn't that get notified when the player dies, not when they kill an enemy?

Lemon's way is good, "eAttacker notify("killed_enemy", self);" I just added the 'self' so that you know who the attacker actually killed.

Yes, i think ur true