setEntityAsTarget
Sets the specified entity as the target for the entity's "look at" behavior. If the entity is not valid, it will not be set as the target and will remain unchanged.
Parameters
entity
The entity to set as the target.