Forum

> > CS2D > General > Die hook bug
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Die hook bug

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Die hook bug

RoDioN1322
BANNED Off Offline

Zitieren
Die hook does not work properly.
When die it always show id 0

1
2
3
4
addhook("die","die_hook")
function die_hook(victim,killer,weapon,x,y)
	msg(victim)
end

EDIT:
victim and killer changed swapped

alt Re: Die hook bug

Talented Doge
User Off Offline

Zitieren
Zitat
killer is the player ID of the player who performed the kill (can also be 0 if the death was not caused by another player).


Edit: Ah, I see, there is a wrong description on die hook page. JAF's method works.

alt Re: Die hook bug

DC
Admin Off Offline

Zitieren
It's possible that I mixed them up because I touched ALL hooks for the latest update. Sorry. I'll check it and possibly fix it.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht