Method ActionMoveAwayFrom
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
targetNwObjectThe target object this creature should move away from. If the target object is not in the same area as this creature, nothing will happen.
runboolIf set to true, the creature will run rather than walk.
rangefloatHow much distance this creature should put between themselves and the object.
Returns
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
locationLocationThe target location this creature should move away from. If the location is not in the same area as this creature, nothing will happen.
runboolIf set true, the creature will run rather than walk.
rangefloatHow much distance this creature should put between themselves and the location.