Syntax: Select all
@EntityPreHook(EntityCondition.equals_entity_classname('prop_physics'), 'touch')
def pre_start_touch(stack):
entity = make_object(Entity, stack[0])
other = make_object(Entity, stack[1])
Everything is fine until I dare to touch any func_door_rotating. Touching one will lead to a crash. Its not an usual crash, but rather the server does not respond for some time and then suggests that there must have been an infinite loop and restarts the whole thing.
Any idea what may cause this? Thanks :)