Table of Contents

Method DistanceSquared

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

DistanceSquared(NwGameObject)

Returns the squared distance to the target.

public float DistanceSquared(NwGameObject target)

Parameters

target NwGameObject

The other object to calculate distance from.

Returns

float

The squared distance in game units, or -1 if the target is in a different area.