Difference between revisions of "OnCrosshairChange"

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 ref under the crosshair changes. The crosshair r...")
 
imported>Pintocat
(Replaced content with "Replaced by OnCrosshairOff and OnCrosshairOn")
 
Line 1: Line 1:
{{Function
Replaced by [[OnCrosshairOff]] and [[OnCrosshairOn]]
|origin = LU
|summary = [[Event_Handling|Event]] block type that calls the [[User_Defined_Function|UDF]] when the ref under the crosshair changes. The crosshair ref is passed to the UDF.
|name = SetEventHandler "OnCrosshairChange"
|arguments =
  {{FunctionArgument
  |Name = myUDF
  |Type = userDefinedFunction
  }}
}}
 
== Example ==
SetEventHandler "OnCrosshairChange" MyUDF
scn MyUDF
ref crosshairRef
begin function {crosshairRef}
end function
 
==See Also==
* [[Event_Handling]]
* [[GetCrosshairRef]]
* [[ObjectUnderReticle]]
* [[CrosshairRefInList]]
 
[[Category:Functions_(Lutana)]]

Latest revision as of 21:50, 3 March 2017

Replaced by OnCrosshairOff and OnCrosshairOn