Difference between revisions of "Osiris/API/CharacterEnteredRegion"

From Divinity Engine Wiki
Jump to: navigation, search
m
 
Line 9: Line 9:
 
* For characters statically placed in a level using the editor, this event is thrown only once when the level is first entered. It is not thrown again when loading save games from within that level. '''''TODO''''': check what happens if the players are teleported out of a level and then back into it (never done in DivinityOrigins mod).
 
* For characters statically placed in a level using the editor, this event is thrown only once when the level is first entered. It is not thrown again when loading save games from within that level. '''''TODO''''': check what happens if the players are teleported out of a level and then back into it (never done in DivinityOrigins mod).
 
===== See Also =====
 
===== See Also =====
* /
+
* [[Osiris/API/CharacterCreateAtPosition|CharacterCreateAtPosition]]
 +
* [[Osiris/API/CharacterCreateAtPositionOutOfSightTo|CharacterCreateAtPositionOutOfSightTo]]
 +
* [[Osiris/API/TemporaryCharacterCreateAtPosition|TemporaryCharacterCreateAtPosition]]
 +
* [[Osiris/API/TemporaryCharacterCreateAtPositionOutOfSightTo|TemporaryCharacterCreateAtPositionOutOfSightTo]]
 +
* [[Osiris/API/TemporaryCharacterCreateAtTrigger|TemporaryCharacterCreateAtTrigger]]
 
   
 
   
 
[[Category:Osiris Events|CharacterEnteredRegion]]
 
[[Category:Osiris Events|CharacterEnteredRegion]]

Latest revision as of 22:53, 30 March 2019

Full Definition(s)
  • event CharacterEnteredRegion((CHARACTERGUID)_Character, (STRING)_Region)
Description

Thrown when a character enters a level because it was placed there in the editor, it was teleported there via script, or it was created/spawned there via script.

Parameters
  • _Character: the character that entered the level/region
  • _Region: the name of the level/region (as entered in the Levelname property of the Level -> Edit Level Data... menu entry in the editor.
Notes
  • For characters statically placed in a level using the editor, this event is thrown only once when the level is first entered. It is not thrown again when loading save games from within that level. TODO: check what happens if the players are teleported out of a level and then back into it (never done in DivinityOrigins mod).
See Also