Background for Fallout 4
Member of the ObjectReference script
boolfunctionIsNearPlayer()

Description

Wiki Description

A function that checks to see if this reference can be safely enabled/disabled/moved with confidence that the player won't see us messing around with the world.

Documentation Comment

Function to know if I'm near the player (whether I can be safely enabled or disabled)


Caveats


Examples

; Disable the box, but only if the player isn't nearby
if (!Box.IsNearPlayer())
  Box.Disable()
endif

Auto-Generated Example

bool returnedValue = myObjectReference__toCallFunctionOn.IsNearPlayer()

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.