Table of Contents

Method ActionMoveAwayFrom

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

ActionMoveAwayFrom(NwObject, bool, float)

Instructs this creature to move a certain distance away from the specified target.

public Task ActionMoveAwayFrom(NwObject target, bool run, float range = 40)

Parameters

target NwObject

The target object this creature should move away from. If the target object is not in the same area as this creature, nothing will happen.

run bool

If set to true, the creature will run rather than walk.

range float

How much distance this creature should put between themselves and the object.

Returns

Task

ActionMoveAwayFrom(Location, bool, float)

Instructs this creature to move to a certain distance away from the specified location.

public Task ActionMoveAwayFrom(Location location, bool run, float range = 40)

Parameters

location Location

The target location this creature should move away from. If the location is not in the same area as this creature, nothing will happen.

run bool

If set true, the creature will run rather than walk.

range float

How much distance this creature should put between themselves and the location.

Returns

Task