NWNWiki
NWNWiki
3,719
pages

The SignalEvent() NWScript command causes the specified object to fire the specified event. This causes the object to execute the script associated with the event once the current script finishes (not in the middle of the current script's execution; c.f. ExecuteScript).

Definition[]

void SignalEvent (object oObject, event evToRun)

object oObject
The object that will receive the event.
event evToRun
The event to be sent.

The event being sent must be constructed by EventActivateItem(), EventConversation(), EventSpellCastAt(), or EventUserDefined(). Outside spell scripts — which use EventSpellCastAt() — the most commonly used of these functions is EventUserDefined().