dealing Extra Damage to func_breakable
so lets say that i want to make it so that players will be able to destroy vents as twice as fast than what it would usually take how do i deal damage to the entity?
PHP Code:
|
Re: dealing Extra Damage to func_breakable
First of all you need to register the event as "pre", not "post". Set the last parameter in "RegisterHam" to "false". In "post" you cannot change the damage, as it's already been done. "pre" is called before dealing the damage.
Your arguments in the "Breakable_damage" function are wrong. Take a look at the API. They should be: PHP Code:
PHP Code:
|
Re: dealing Extra Damage to func_breakable
Quote:
aight it worked thanks alot mate appreciete it |
All times are GMT -4. The time now is 00:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.