Talk:OnDistanceGreaterThan - ScriptObject
Jump to navigation
Jump to search
Not triggering consistently using the following. I guess utility is limited when the distance covers multiple cells
- RegisterForDistanceGreaterThanEvent( kMyObject, kMyActor, 25000 )
- Event OnDistanceGreaterThan( ObjectReference akObj1, ObjectReference akObj2, Float afDistance )
- Debug.MessageBox(afDistance)
- endEvent
Testing with the following the notification will show distances greater than the registered distance w/out a message box showing.
- Event OnCellLoad()
- fMyQuestDistProp = kMyObject.GetDistance( kMyActor )
- Debug.Notification(fMyQuestDistProp)
- endEvent