Function
Cmd
Cmd_Surrender
Orders a squad to surrender and awards the local player with an appropriate number of action points
On this page
Cmd_Surrender(sgroupid, actionpoints, exitpos, deleteAtExit, removeWeapon)Description
Use the optional parameter to assign action points to override the default number. The function automatically addresses squads that are in buildings or vehicles by ordering them out of the vehicle. The command will also overwrite the exit position as well, if you do not want the squads to exit at the map entry point.
Parameters
sgroupidSGrouprequiredactionpointsIntegeroptionalexitposPositionoptionaldeleteAtExitBooleanoptionalremoveWeaponBooleanoptional
Returns
VoidSource
Declared in the game's script sources at:
scar/command.scar