Entity:SetEyeTarget
Description
Sets the position an entity's eyes look toward. This works as an override for default behavior. Set to 0,0,0 to disable the override.
Arguments
1 Vector pos
For NPCs and all other entities except ragdolls - the world position for the entity to look towards
For ragdolls specifically - a local position in front of their eyes attachment.
Example
Makes an NPC (self) look into a nearby player's eyes.
Example
Makes an entity look at a vector the way the eyeposer does it
Garry's Mod
Rust
Steamworks
Wiki Help