Djinni Wiki
Advertisement

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
Advertisement