Background for Fallout 4
Member of the ObjectReference script
float[]functionGetSafePosition(floataSearchRadius=-1, floataSafeRadius=-1)Native

Description

Wiki Description

Get the nearest navmesh 'safe' position of radius aSafeRadius within aSearchRadius.

Documentation Comment

Gets an array of the x,y,z of a safeRadius radius location within searchRadius of the reference, returns empty array if it fails.


Caveats


Parameters

floataSearchRadius=-1

CK Wiki Description

If specified, a floating point value that determines the spherical area in which to search for a safe location.

  • Default:-1 ( any value 0 or below will be replaced with FLT_MAX)

floataSafeRadius=-1

CK Wiki Description

If specified, a floating point value that determines the minimum clear spherical area on the navmesh to consider 'safe'.

  • Default:-1 (any value 0 or below will be replaced with the defaults for a landing space)

Examples

; Find a safe landing location for the vertibird.
float[] safeLocationArray = MySignalGrenade.GetSafeLocation(1024.0,300.0)

Auto-Generated Example

float myFloat__aSearchRadius
float myFloat__aSafeRadius

float[] returnedValue = myObjectReference__toCallFunctionOn.GetSafePosition(myFloat__aSearchRadius, myFloat__aSafeRadius)

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.