Entity A is the parent of entity B, entity B is func_button_timed
Entity A has 10 seconds to be deleted:
PHP Code:
SetVariantString("OnUser1 ! Self: kill: : 10.0:1 ");
AcceptEntityInput(A, "AddOutput");
AcceptEntityInput(A, "FireUser1");
When I hook: HookSingleEntityOutput(B, "OnTimeUp", OnTimeUp);
Perform the button progress bar (5 seconds) function in the OnTimeUp callback. If Entity A is deleted within 5 seconds, the player will be frozen
How to solve this problem?