SetJohnnyOnRadioPostSoundAttachEventHandler

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Sets/removes the specified UDF Script as a handler that will be invoked on a specified target radio ref after a sound is attached.

Syntax

[help]
SetJohnnyOnRadioPostSoundAttachEventHandler setORremove:1/0 handlerScript:ref flag:int 

Or:

SetOnRadioPostSoundHandler setORremove:1/0 handlerScript:ref flag:int

Example

SetJohnnyOnRadioPostSoundAttachEventHandler 1 RadioPostSoundAttachUDF 0 

Handler Script

A skeleton handler script for this event:

scn RadioPostSoundAttachUDF

ref rTarget
int mode

begin Function {rTarget, mode} 

...

end

Notes

  • Flag argument is reserved for future use and should always be 0.