Barrier
info
This module can only be used in Entity scripts.
Functions
block(targetObject)
Enables this barrier's collision with certain objects.
Parameters
unblock(targetObject)
Disables this barrier's collision with certain objects.
Parameters
reset()
Resets this barrier's collision. All objects will be blocked again.
isBlocked(targetObject)
Check if this barrier is blocking a specific entity type.