function ActionMoveAwayFromObject (object oFleeFrom, int bRun=FALSE, float fMoveAwayRange=40.0f)

Cause the action subject to move to a certain distance away from oFleeFrom.

  • oFleeFrom: This is the object we wish the action subject to move away from. If oFleeFrom is not in the same area as the action subject, nothing will happen.
  • bRun: If this is TRUE, the action subject will run rather than walk
  • fMoveAwayRange: This is the distance we wish the action subject to put between themselves and oFleeFrom * No return value, but if an error occurs the log file will contain "ActionMoveAwayFromObject failed."
  • Return type: void
  • Include file: nwscriptdefn

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.