Osiris/API/CharacterLookFromTrigger
From Divinity Engine Wiki
Revision as of 15:12, 21 December 2017 by LarIlya (talk | contribs) (Created page with "===== Full Definition(s) ===== 250px|thumb|right|Image of a point trigger facing down and to the right * call '''CharacterLookFromTrigger'''(''(CHAR...")
Full Definition(s)
- call CharacterLookFromTrigger((CHARACTERGUID)_Character, (TRIGGERGUID)_Trigger, (INTEGER)_SnapToTarget)
Description
Makes the _Character face in the same direction as the _Trigger. If _SnapToTarget is 0, the character will gradually rotate to face that way, otherwise they will snap.
Notes
- In practice, it is most convenient to use a point trigger for the _Trigger, because it is easy to show which way one faces.
- To see the direction in which a point trigger faces, select it and use View -> Selected Trigger Shapes or Ctrl+Alt+T.