Djinni Wiki

function ActionMoveToObject (object oMoveTo, int bRun=FALSE, float fRange=1.0f)

Cause the action subject to move to a certain distance from oMoveTo. If there is no path to oMoveTo, this command will do nothing.

  • oMoveTo: This is the object we wish the action subject to move to
  • bRun: If this is TRUE, the action subject will run rather than walk
  • fRange: This is the desired distance between the action subject and oMoveTo * No return value, but if an error occurs the log file will contain "ActionMoveToObject failed."
  • Return type: void
  • Include file: nwscriptdefn