Call of Duty 4: Scripting Reference - AI::OrientMode
From COD Modding & Mapping Wiki
OrientMode( <orient mode>, <face angle>
Module: AI
SP Only
Summary:
Set the orient mode of this actor.
Call this on: <actor> An actor
Example:
randAlly OrientMode( "face direction", level.player.origin-randAlly.origin );
Required arguments:
- <orient mode> (const string) OrientMode must be 'face angle', 'face current', 'face direction', 'face enemy', 'face enemy or motion', 'face goal', 'face motion', 'face point', or 'face default'
Optional arguments:
- <face angle> (float) The yaw angle to face if orient mode is 'face angle'
- <direction vector> (vector) The direction vector to face if orient mode is 'face direction'
- <face position> (vector) The point to face if orient mode is 'face point'
Notes:
- none