ScarDoc

Start typing to search the SCAR reference.

Function
Cmd

Cmd_SquadPath

Send a command to the squad to follow a path. Can wait at each waypoint. The sgroup can be deleted when in proximity of a marker if you pass in the marker as the 7th argument (it assumes a proximity of 5 if you forget to set one on the marker)

On this page
Cmd_SquadPath(sgroup, pathName, bFromClosest, loop, bAttackMove, pauseTime, deleteWhenNearMarker, queued, bMoveForward)

Description

loop can be: LOOP_NONE, LOOP_NORMAL, LOOP_TOGGLE_DIRECTION

Parameters

  • sgroupSGroupIDrequired
  • pathNameStringrequired
  • bFromClosestBooleanrequired
  • loopIntegerrequired
  • bAttackMoveBooleanrequired
  • pauseTimeFloatrequired
  • deleteWhenNearMarkerMarkerIDoptional
  • queuedBooleanoptional
  • bMoveForwardBooleanoptional

Returns

Void

Source

Declared in the game's script sources at:

scar/command.scar