![]() |
Detecting if a player has been hit by another player?
Hey. Is there a function to check if a player has been hit by another player's sword? I can't seem to find one of the forums or on the wiki.
|
function onWasHit isn't it? I've not done classic systems for a while
|
Last time I tried, onWasHit() does not work on GMAPs.
|
onWasHit() doesn't do it :(
|
Pretty sure there is a serverside function like onplayerhurt() that now returns who/what hurt the player. I just don't know the exact name.
|
i think player.hurted returns a boolean if the player has been hurt or not
|
sounds pretty easy to do if it does't already exist! i also thought it was the "onwaShit" function. :cool:
|
If you didn't find a Clientside solution yet and onWasHit is being invoked by all forms of damage, you could try:
PHP Code:
|
| All times are GMT +2. The time now is 03:39 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.