Background for Fallout 4
Member of the ScriptObject script
voidfunctionUnregisterForDistanceEvents(ScriptObjectakObj1, ScriptObjectakObj2)Native

[DEV SERVER] Loading description...


Caveats

CK Wiki - Notes

  • The two object parameters are interchangeable.
  • Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.

Parameters

ScriptObjectakObj1

CK Wiki Description

The first object to check distance with. (Must be an ObjectReference or ReferenceAlias)

ScriptObjectakObj2

CK Wiki Description

The second object to check distance with. (Must be an ObjectReference or ReferenceAlias)


Examples

; We no longer care about the distance between the earth and moon
UnregisterForDistanceEvents(Earth, Moon)

Auto-Generated Example

ScriptObject myScriptObject__akObj1
ScriptObject myScriptObject__akObj2

myScriptObject__toCallFunctionOn.UnregisterForDistanceEvents(myScriptObject__akObj1, myScriptObject__akObj2)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.