Difference between revisions of "Osiris/API/CharacterSawCharacter"
From Divinity Engine Wiki
m |
m (→Notes) |
||
Line 7: | Line 7: | ||
* '''_OtherCharacter''': the character that is seen | * '''_OtherCharacter''': the character that is seen | ||
===== Notes ===== | ===== Notes ===== | ||
− | * By default, only player-controlled characters are event generators. Once you call [[Osiris/API/CharacterCanSee|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 | + | * By default, only player-controlled characters are event generators. Once you call [[Osiris/API/CharacterCanSee|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 will only work temporarily though, so only rely on these events being thrown for player characters. |
* This call takes sneaking into account | * This call takes sneaking into account | ||
+ | |||
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/CharacterCanSee|CharacterCanSee]] | * [[Osiris/API/CharacterCanSee|CharacterCanSee]] |
Revision as of 10:59, 4 October 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 will only work temporarily though, so only rely on these events being thrown for player characters.
- This call takes sneaking into account