The EventSpellCastAt() NWScript command creates an OnSpellCastAt event to be sent to a creature, door, or placeable, indicating that the specified spell has been cast by the specified creature at the object receiving the event. This function only creates the event; to actually trigger the event, this function's return value must be passed to SignalEvent(). This function does not cause a spell to be cast. Rather, it is intended to be used to notify the target of a spell about the spell as it is cast (technically, immediately after it is cast), usually from within the spell's script.
| Attributes | Values |
|---|
| rdfs:label
| |
| rdfs:comment
| - The EventSpellCastAt() NWScript command creates an OnSpellCastAt event to be sent to a creature, door, or placeable, indicating that the specified spell has been cast by the specified creature at the object receiving the event. This function only creates the event; to actually trigger the event, this function's return value must be passed to SignalEvent(). This function does not cause a spell to be cast. Rather, it is intended to be used to notify the target of a spell about the spell as it is cast (technically, immediately after it is cast), usually from within the spell's script.
- function EventSpellCastAt (object oCaster, int nSpell, int bHarmful=TRUE) Create an event which triggers the "SpellCastAt" script
* Return type: event
* Include file: nwscriptdefn
|
| param3desc
| - If FALSE, this indicates that the spell is not harmful/hostile.
|
| dcterms:subject
| |
| dbkwik:nwn2/proper...iPageUsesTemplate
| |
| returns
| |
| Name
| |
| param
| - int nSpell
- object oCaster
- int bHarmful
|
| param2desc
| - A SPELL_* constant indicating the spell being cast.
|
| param1desc
| - The creature casting the spell.
|
| param3default
| |
| dbkwik:nwn/property/wikiPageUsesTemplate
| |
| abstract
| - The EventSpellCastAt() NWScript command creates an OnSpellCastAt event to be sent to a creature, door, or placeable, indicating that the specified spell has been cast by the specified creature at the object receiving the event. This function only creates the event; to actually trigger the event, this function's return value must be passed to SignalEvent(). This function does not cause a spell to be cast. Rather, it is intended to be used to notify the target of a spell about the spell as it is cast (technically, immediately after it is cast), usually from within the spell's script.
- function EventSpellCastAt (object oCaster, int nSpell, int bHarmful=TRUE) Create an event which triggers the "SpellCastAt" script
* Return type: event
* Include file: nwscriptdefn
|