RDNWiki: DOWScar/Functions/BalanceCreateSquadsAtMarkerByResource ...

RDN Wiki Home | Page Index | Recent Changes | Recently Commented | Users | Registration | Login:  Password:  

Balance_CreateSquadsAtMarkerByResource


Creates a group of squads, limited by resources, at a position.


SGroupID Balance_CreateSquadsAtMarkerByResource(
PlayerID playerId,
String squadgroupName,
String squadBlueprint,
Table load_out_table,
String markername,
Integer requisition_amount,
Integer power_amount

)


Parameters


playerId

The 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


Categories: Balance

Referring pages: DOWScar/Functions/Index
DOWScar/Functions/IndexBalance

There are no files on this page. [Display files/form]
There is no comment on this page. [Display comments/form]