Difference between revisions of "Osiris API Tips"
From Divinity Engine Wiki
(Created page with "<br> <ul><li> <h3><a href="https://sites.google.com/a/larian.com/larian-wikisite/osiris-api-tips-crimes">Osiris API for crimes</a><br> </h3> </li></ul> <h2>Main Osiris API</h2...") |
|||
Line 1: | Line 1: | ||
<br> | <br> | ||
− | |||
− | |||
− | |||
</li></ul> | </li></ul> | ||
<h2>Main Osiris API</h2> | <h2>Main Osiris API</h2> |
Revision as of 14:11, 31 July 2017
</li></ul>
Main Osiris API
Events
Events are a way for Osiris to inform script that something happened. All event parameters have [in] semantics.
CharacterBlockedBy
Full definitions- event CharacterBlokedBy((CHARACTERGUID)_Defender, (CHARACTERGUID)_Attacker, (CHARACTERGUID)_AttackerOwner)
Description
Thrown when a character blocks an attack from another character.
Parameters
- _Defender: The character that received/defended the attack.
- _Attacker: The character that attacked the _Defender.
- _AttackerOwner: The character that owns the _Attacker character.
Notes
- _AttackerOwner can be the same character as _Attacker, _AttackOwner will be different in the case of summoned characters.