Difference between revisions of "Osiris/API/CharacterLookFromTrigger"

From Divinity Engine Wiki
Jump to: navigation, search
m
m
 
Line 8: Line 8:
 
* Select a Point Trigger and use View -> Selected Trigger Shapes or press Ctrl+Alt+T to see the direction in which it faces.
 
* Select a Point Trigger and use View -> Selected Trigger Shapes or press Ctrl+Alt+T to see the direction in which it faces.
 
===== See Also =====
 
===== See Also =====
[[Osiris/API/CharacterLookAt|CharacterLookAt]]
+
* [[Osiris/API/CharacterLookAt|CharacterLookAt]]
  
 
[[Category:Osiris Calls|CharacterLookFromTrigger]]
 
[[Category:Osiris Calls|CharacterLookFromTrigger]]

Latest revision as of 20:48, 7 January 2018

Full Definition(s)
Image of a point trigger facing down and to the right
  • 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.
  • Select a Point Trigger and use View -> Selected Trigger Shapes or press Ctrl+Alt+T to see the direction in which it faces.
See Also