Difference between revisions of "SignalEvent"

From NWN Lexicon
Jump to: navigation, search
m (Wikified article formatting and cleaned up grammar)
m (Removed protection from "SignalEvent")
(No difference)

Revision as of 00:53, 4 July 2020

Causes an object to fire a specified event.

void SignalEvent(
    object oObject,
    event evToRun


The Object you want to have run an event.
The event to have the object run. Must be constructed using one of the event functions.


Causes oObject to run evToRun. Allows objects to fire off events in other objects. The events you can run include the default events provided by BioWare as well as user defined events the object has scripted. The event parameter must be an actual event created by one of the many event functions.


The only events which are valid are:

They could be defined, but it is more likely they are put directly into the SignalEvent(), like the example below.




// Fire the modules event 100, which could trigger some event such as a cutscene.
void main()
    // Get the module
    object oModule = GetModule();
    // Signal the user defined event
    SignalEvent(oModule, EventUserDefined(100));

See Also

functions:  EventUserDefined

 author: John Shuell, editor: Jasperre, additional contributor(s): Darrell Knapp