prevent a Ham registered event from going through
RegisterHam(Ham_TakeDamage, "player", "player_hurt_pre", 1)
as you can see, i hooked Ham_TakeDamage when this fires and my condition to block the event from continuing its normal proces is met i return HAM_SUPERCEDE. Unfortunatly this doesnt work and damage still goes through and the player still hits his target. I need a full stop, how could i do that? |
Re: prevent a Ham registered event from going through
Code:
|
Re: prevent a Ham registered event from going through
Quote:
Quote:
|
Re: prevent a Ham registered event from going through
Quote:
Quote:
|
Re: prevent a Ham registered event from going through
Quote:
|
Re: prevent a Ham registered event from going through
This is wrong : RegisterHam(Ham_TakeDamage, "player", "player_hurt_pre", 1)
Already stated by fysiks but you may understand better like this : RegisterHam(Ham_TakeDamage, "player", "player_hurt_pre", 0) <- you can stop this one because you hook it before it is executed RegisterHam(Ham_TakeDamage, "player", "player_hurt_post", 1) <- you can't stop this one because you hook it after it has been executed |
Re: prevent a Ham registered event from going through
Quote:
|
Re: prevent a Ham registered event from going through
Quote:
Thanks for pointing out that i need to use 0 for pre and 1 for post, the discription sais the exact opposite :). Also it's good to know that you guy's are still active here, you guys are like legends when it comes to this :) Quote:
|
Re: prevent a Ham registered event from going through
Quote:
|
Re: prevent a Ham registered event from going through
Quote:
Quote:
|
| All times are GMT -4. The time now is 10:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.