ARLookAtEntity
From Blue Mars Developer Guidebook
There are security restrictions on this article
|
|
This is an Avatar Reality Utilities function.
Contents |
Function
- ARLookAtEntity(entity, target)
- aim entity at target entity
Notes
This function was written to support custom cameras, but it can be useful for any entity that needs to point toward another entity.
Examples
See MiniLookAtCamera
Code
This is a simple wrapper around ARLookAtPos, passing the target entity's location as the target position. See also GetWorldPos.
function ARLookAtEntity(entity,target) ARLookAtPos(entity,target:GetWorldPos()); end
