AimToward (

AimToward(theObj otherObj [cueObj])
AimToward(theObj otherObj faceEachOther [cueObj])
AimToward(theObj x y [cueObj])

Changes the heading of theObj so it faces another object or position. Optionally causes the other object to face the first object.

  • theObj (heapPtr) – The object that is being aimed.
  • otherObj (heapPtr) – The target object.
  • faceEachOther (boolean) – If TRUE, the otherObj will also be made to face theObj.
  • x (number) – The target x.
  • y (number) – The target x.
  • cueObj (heapPtr) – Optional object to be cue()’d.