Difference between revisions of "Osiris/API/CharacterSawCharacter"

From Divinity Engine Wiki
Jump to: navigation, search
m
Line 12: Line 12:
 
* [[Osiris/API/CharacterCanSee|CharacterCanSee]]
 
* [[Osiris/API/CharacterCanSee|CharacterCanSee]]
 
* [[Osiris/API/CharacterLostSightOfCharacter|CharacterLostSightOfCharacter]]
 
* [[Osiris/API/CharacterLostSightOfCharacter|CharacterLostSightOfCharacter]]
+
* [[Osiris/API/HasLineOfSight|HasLineOfSight]]
 +
 
 
[[Category:Osiris Events|CharacterSawCharacter]]
 
[[Category:Osiris Events|CharacterSawCharacter]]

Revision as of 22:36, 13 September 2018

Full Definition(s)
  • event CharacterSawCharacter((CHARACTERGUID)_Character, (CHARACTERGUID)_OtherCharacter)
Description

Thrown when one _Character sees _OtherCharacter. Note that this event is only thrown if _Character has been registered as an event generator.

Parameters
  • _Character: the character that does the seeing.
  • _OtherCharacter: the character that is seen
Notes
  • By default, only player-controlled characters are event generators. Once you call CharacterCanSee with an NPC as first parameter, an event generator is also registered for this NPC and it will also start throwing CharacterSawCharacter events. This event generator may only work temporarily though, so in general only rely on these events be thrown for player characters.
  • This call takes sneaking into account
See Also