For playerhurt, does this still apply in gs2?
Quote:
when the player is hurt then you can detect that in
scripts by doing if (playerhurt) ...
you can read the variable playerhurtpower to get
the amount of power that the player lost
new npc script variables playerhurtdx and playerhurtdy when the
player is hurt (otherwise they are 0)
|
Because if so, you could use a simple code in the weapon every single player has that reads if the player gets hurt and player.hearts==0, or use onPlayerDies(), then go to a
Quote:
|
findnearestplayer(float1, float2)
|
since the person who hurt the player SHOULD be closest.
Would that work? Am I correct? Or is my logic wrong?