Allows this entity to be leashed and defines the conditions
and events for this entity when is leashed.
Example: getEntityLeashableComponent.js
constgetEntityLeashableComponent = entity.getComponent("leashable"); getEntityLeashableComponent.softDistance; getEntityLeashableComponent.leash(leashHolderEntity); // Assuming you have an 'leashHolderEntity' instance getEntityLeashableComponent.unleash(); getEntityLeashableComponent.isValid();
Returns whether the component is valid. A component is
considered valid if its owner is valid, in addition to any
addition to any additional validation required by the
component.
Allows this entity to be leashed and defines the conditions and events for this entity when is leashed.
Example: getEntityLeashableComponent.js