Cmd
39 functions
- Cmd_AbandonTeamWeaponOrder a squad group to abandon their current team weapon if they have it and they could (tuning value in attribute editor)
- Cmd_AbilitySends an ability command to a player, egroup or sgroup. extra parameters are provided if the ability requires them.
- Cmd_AttachSquadsAttach the squad from sgroupnameAttachee to sgroupname. Both SGroups must contain only one squad.
- Cmd_AttackIssues an attack command to an SGroup
- Cmd_AttackMoveOrder a squad group to attack move to a position (anything whose position can be queried). can be queued, can follow a plan, can search for cover within a radius
- Cmd_AttackMoveThenCaptureCommand attacker sgroup to attack move to strategic point target; when it is capturable, the sgroup would capture it
- Cmd_CaptureTeamWeaponOrder a squad group to capture team weapon entity group.
- Cmd_ConstructOrders a squad to contruct a building at specified position, or to continue construction on an existing building.
- Cmd_DetonateDemolitionsDetonates a building's demolitions
- Cmd_DoPlan
- Cmd_EjectOccupantsOrders an EGroup or SGroup to kick out its occupants. If no position is specified, the occupants stay at the exit.
- Cmd_GarrisonOrder a squad group to load at a random entity or squad of the group
- Cmd_HoldPositionOrder a squad group to hold position at a given location (or just it's current location)
- Cmd_InstantReinforceUnitSends a instant reinforce command to all squads in a group. count represents the number of commands to send.
- Cmd_InstantSetupTeamWeaponOrder a squad group to instant setup their team weapon without animation
- Cmd_InstantUpgradeSends an instant upgrade command to a player, egroup or sgroup. accepts a single upgrade or table of upgrades.
- Cmd_MoveMove a squad group to a given position.
- Cmd_MoveAwayFromPosMove a squad group out of a position to a certain radius
- Cmd_MoveToAndDeSpawnMoves a squad group to the indicated Marker and despawns it.
- Cmd_MoveToAndDestroyMoves a squad group to the indicated Marker and destroys it.
- Cmd_MoveToClosestMarkerMoves a squad group to the closest marker in a list/table of MarkerIDs.
- Cmd_MoveToThenAttackMoveMove a squad group to a given position, attack-moving once close enough
- Cmd_MoveToThenCaptureCommand attacker sgroup to attack move to strategic point target; when it is capturable, the sgroup would capture it
- Cmd_RecrewVehicleOrder a squad group to recrew an abandoned vehicle.
- Cmd_ReinforceUnitSends a reinforce command to all squads in a group. count represents the number of commands to send.
- Cmd_RetreatOrder a squad group to retreat, optionally to a specific location. The sgroup can be deleted when in proximity of a marker (it assumes a proximity of 5 if you forget to set one on the marker)
- Cmd_RevertOccupiedBuildingOrder a squad group to revert occupied building
- Cmd_SetDemolitionsOrders a squad group to place demolition charges on a building (egroup). Function does nothing if egroup cannot be detonated, or player can't afford the demolitions
- Cmd_SetupTeamWeaponOrder a squad group to setup their team weapon with animation
- Cmd_SquadCamouflageStanceSends an camouflage stance command to all squads in a group. stanceid should be the number returned by Util_GetCamouflageStanceID( stancename )
- Cmd_SquadPathSend 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)
- Cmd_SquadPatrolMarkerCauses a squad to patrol a marker attacking any enemies that come within its radius. If used on circular markers, the radius must be at least 5. To stop the squad from patrolling the marker, use Cmd_Stop.
- Cmd_StaggeredRetreatRetreats large numbers of units in a staggered, realistic manner.
- Cmd_StopSends a stop command to egroup or sgroup.
- Cmd_StopSquadsExceptPass in a group to command to 'stop'. Pass in booleans for capturing and building
- Cmd_SurrenderOrders a squad to surrender and awards the local player with an appropriate number of action points
- Cmd_UngarrisonSquadOrders an sgroup to exit the building or vehicle that it's in. If no position is specified, the sgroup stays at the exit.
- Cmd_UpgradeSends an upgrade command to a player, egroup or sgroup. accepts a single upgrade or table of upgrades.
- Cmd_UpgradeRemoveSends an upgrade remove command to a player, egroup or sgroup. accepts a single upgrade or table of upgrades.