Balance_CreateSquadsAtMarkerByResource
Creates a group of squads, limited by resources, at a position.
SGroupID Balance_CreateSquadsAtMarkerByResource(
)
Parameters
playerIdThe player who will own the created squad
squadgroupName
The name of the group to add the squad too when created
squadBlueprint
The blueprint of the unit to create
load_out_table
A table consisting of what the squad will be created equipped with
markername
The name of the marker where the squad will be created at
requisition_amount
How much requisition to spend on squads to create
power_amount
How much power to spend on squads to create
Description
Creates the maximum number of squads of this loadout given the resources at a marker position and adds them to a squadgroup.
Remarks
The squadgroup will be created if it doesnt exist.
Loadout will be clipped to unitMin and unitMax from the squad blueprint.
Although the
ScarDoc says the power and requsition need to be Floating numbers (
Real values), they really just need to be integers.
Example
Function Revisions
1.00: Initial function.
Source
BalanceTool.scar
See Also