Difference between revisions of "OnCrosshairChange"

Jump to navigation Jump to search
564 bytes removed ,  21:50, 3 March 2017
Replaced content with "Replaced by OnCrosshairOff and OnCrosshairOn"
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)]]
Anonymous user

Navigation menu