Difference between revisions of "OnCrosshairOn"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Pintocat
(Created page with "{{Function |origin = LU |summary = Event block type that calls the UDF when the a new ref is found in the crosshair. Crosshair (...")
 
imported>Pintocat
 
Line 66: Line 66:


[[Category:Functions_(Lutana)]]
[[Category:Functions_(Lutana)]]
[[Category:Events_(Lutana)]]

Latest revision as of 22:28, 3 March 2017

< [[::Category:Functions|Category:Functions]]

A function added by the Lutana NVSE plugin.

Description

Event block type that calls the UDF when the a new ref is found in the crosshair. Crosshair (ref) is passed to the UDF. Can be filtered with a form or list, or Form Type. OnCrosshairOn and OnCrosshairOff can also be filtered by form type via "OnCrosshairOn:25" etc.

OnCrosshairChange is deprecated(removed) and replaced with OnCrosshairOn and OnCrosshairOff

Syntax

[help]
(crosshairRef:ref) SetEventHandler "OnCrosshairOn" myUDF:userDefinedFunction


Example with no filtering

SetEventHandler "OnCrosshairOn" MyUDF

scn MyUDF

ref rCrosshairRef

begin function {rCrosshairRef}

end function

Example with filtering by a form

SetEventHandler "OnCrosshairOn" ""::someForm MyUDF

scn MyUDF

ref rCrosshairRef

begin function {rCrosshairRef}

end function


Example with filtering by formlist

SetEventHandler "OnCrosshairOn" ""::someFormList MyUDF

scn MyUDF

ref rCrosshairRef

begin function {rCrosshairRef}

end function 

Example with filtering by form type 24 (armor)

SetEventHandler "OnCrosshairOff:24" MyUDF

scn MyUDF

ref rCrosshairRef

begin function {rCrosshairRef}

end function  

See Also