OnPlayerGrab

From the Fallout3 GECK Wiki
Revision as of 22:30, 3 March 2017 by imported>Pintocat
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Lutana NVSE plugin.

Description

Event block type that calls the UDF when the when the player picks up (Control Code 27 ) the form or form in the formlist. Grabbed (ref) is passed to the UDF. Can be filtered with a form or formlist.

Syntax

[help]
(grabbedRef:ref) SetEventHandler "OnPlayerGrab" myUDF:userDefinedFunction


Example with no filtering

SetEventHandler "OnPlayerGrab" MyUDF

scn MyUDF

ref rGrabbedRef

begin function {rGrabbedRef}

end function

Example with filtering by a form

SetEventHandler "OnPlayerGrab" ""::someForm MyUDF

scn MyUDF

ref rGrabbedRef

begin function {rGrabbedRef}

end function


Example with filtering by formlist

SetEventHandler "OnPlayerGrab" ""::someFormList MyUDF

scn MyUDF

ref rGrabbedRef

begin function {rGrabbedRef}

end function 


See Also