Difference between revisions of "OnDistanceGreaterThan - ScriptObject"

m
→‎Example: afDistance value was missing in the event registration
imported>Plplecuyer
(Created page with "Category:Scripting Category:Papyrus Category:Events '''Member of:''' ScriptObject Event called when two objects are farther then the register...")
 
imported>Docclox
m (→‎Example: afDistance value was missing in the event registration)
 
Line 21: Line 21:
<source lang="papyrus">
<source lang="papyrus">
Function SomeFunction()
Function SomeFunction()
   RegisterForDistanceGreaterThanEvent(Game.GetPlayer(), Bird) ; Before we can use OnDistanceGreaterThan we must register.
   RegisterForDistanceGreaterThanEvent(Game.GetPlayer(), Bird, 1000.0) ; Before we can use OnDistanceGreaterThan we must register.
EndFunction
EndFunction


Anonymous user