ShowOff:OnDispositionChange

From GECK
Jump to: navigation, search

An event handler added by the ShowOff NVSE Plugin version 1.60.

Description

This event runs right before the disposition of an actor is modified.

The calling reference is the actor whose disposition is changed.

1st (and only) UDF arg: DispositionModifier (int)

Syntax

Use SetEventHandler / SetEventHandlerAlt with the event name "ShowOff:OnDispositionChange".

Handler Script

A skeleton handler script for this event:

scn OnDispositionChangeUDF

ref rActor
int iDispMod

begin Function { iDispMod }

    ref rActor = GetSelfAlt  ; GetSelf would also work fine 

    printvar rActor, iDispMod 

    print "OnDispositionChangeUDF >> RAN!"

end

See Also