GetCurrentEventName

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

When called from within a SetEventHandler-style event handler, returns the name of the event currently being handled, as defined.

Syntax

[help]
(string:EventName) GetCurrentEventName

Example

Let sv_event := GetCurrentEventName
if eval sv_event == "OnPackageStart"
    ; do something
elseif eval sv_event == "OnPackageChange"
    ; do something else
endif 

See Also

External Links