void SetFacingObject(object oTarget) { vector vFace=GetPosition(oTarget); SetFacingPoint(vFace); } void main() { object oTele = GetNearestObjectByTag("fr_boidoc_tele"); SetFacingObject(oTele); AssignCommand(OBJECT_SELF,ActionMoveToObject(oTele)); PlayAnimation(ANIMATION_LOOPING_GET_MID,1.0,10000.0); }