I want to ignore func_breakable from the BombSite boxes.
How to get if a func_breakable is from this type of entity?
I tried two methods but not working.
Method 1, from https://forums.alliedmods.net/showthread.php?t=304934
Method 2 from https://forums.alliedmods.net/showthread.php?t=115817
How to get if a func_breakable is from this type of entity?
I tried two methods but not working.
Method 1, from https://forums.alliedmods.net/showthread.php?t=304934
Код:
if(equal(szClassName, "func_breakable") && !(entity_get_int(iEntIndex, EV_INT_flags) & SF_BREAK_TRIGGER_ONLY))
{
// not bombsite, do my code
}
Код:
if(equal(szClassName, "func_breakable") && entity_get_int(iEntIndex, EV_INT_impulse) == 0)
{
// not bombsite, do my code
}