Making a door take damage
I am working on a plugin that I need to make doors take damage and then be destroyed after taking so much. I also need to have the amount of health of the doors to vary and also be edited in the game. This plugin is for The Specialists mod.
So far, I have gotten windows in the game(func_breakable) to do what I needed, but I can't get the doors (func_door and func_door_rotating) to do the same. I made a simple plugin to test the things and here is the code for changing the doors and windows health: Code:
public sethp()Code:
entity_set_float(i,EV_FL_health,hp) |
Re: Making a door take damage
Hook TakeDamage using Ham Sandwich, count the damage yourself, ignore damages made by the engine,and when your count reaches the target,destroy the door manualy.
|
| All times are GMT -4. The time now is 05:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.