Difference between revisions of "OnCellChange"

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 player changes cells. The previous cell (ref) an...")
 
imported>Pintocat
(Replaced content with "Replaced by OnCellEnter and OnCellExit")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Function
Replaced by [[OnCellEnter]] and [[OnCellExit]]
|origin = LU
|summary = [[Event_Handling|Event]] block type that calls the [[User_Defined_Function|UDF]] when the player changes cells. The previous cell (ref) and the new cell (ref) are passed to to the UDF.
|name = SetEventHandler "OnCellChange"
|arguments =
  {{FunctionArgument
  |Name = myUDF
  |Type = userDefinedFunction
  }}
}}
 
== Example ==
SetEventHandler "OnCellChange" MyUDF
scn MyUDF
ref oldcell
ref newcell
begin function {oldcell, newcell}
end function
 
==See Also==
* [[Event_Handling]]
 
[[Category:Functions_(Lutana)]]

Latest revision as of 01:38, 4 March 2017

Replaced by OnCellEnter and OnCellExit