is_hostage_alive(ent)
I have ent id of hostage.. I wanna to check is he alive.. whats the best way?
Note: I'm checking that in somethink like fw_preHostageRespawn :) maybe that's why this doesn't work: PHP Code:
PHP Code:
|
Re: is_hostage_alive(ent)
Check pev_health, i'm sure it should be more than 0
|
Re: is_hostage_alive(ent)
thx, will try :)
|
Re: is_hostage_alive(ent)
I updated the post. Doesn't work :(
|
Re: is_hostage_alive(ent)
And there is the question will Ham_Killed hook hostage death?
|
Re: is_hostage_alive(ent)
Hook the forward in post and not pre.
|
Re: is_hostage_alive(ent)
Quote:
|
Re: is_hostage_alive(ent)
PHP Code:
|
Re: is_hostage_alive(ent)
Man I was doing the same.. :) Just I think hostages HP is restored before respawn, so I need some other way to check that..
|
Re: is_hostage_alive(ent)
Dont know how you tryed but it worked pefect for me.
PHP Code:
|
| All times are GMT -4. The time now is 02:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.