BIS fnc curatorAutomatic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.16|Game version=
|1.16


|gr1 = Curator |GROUP1=
|gr1 = Curator


| Spawn units based on curator settings. Used when curator role is not taken.|DESCRIPTION=
| Spawn units based on curator settings. Used when curator role is not taken.


| [curator,sides,cheatCoef,infantyProb,groundProb,airProb,marineProb] call [[BIS_fnc_curatorAutomatic]] |SYNTAX=
| [curator,sides,cheatCoef,infantyProb,groundProb,airProb,marineProb] call [[BIS_fnc_curatorAutomatic]]


|p1= curator: [[Object]] - Curator module, costs and coefficients will be read from it |PARAMETER1=
|p1= curator: [[Object]] - Curator module, costs and coefficients will be read from it


|p2= sides: [[Array]] - Array of [[side|sides]] of the placed entities |PARAMETER2=
|p2= sides: [[Array]] - Array of [[side|sides]] of the placed entities


|p3= cheatCoef: [[Number]] - Cheat coefficient (1 means default costs, 0.5 means 50% values; allows spawning of more units) |PARAMETER3=
|p3= cheatCoef: [[Number]] - Cheat coefficient (1 means default costs, 0.5 means 50% values; allows spawning of more units)


|p4= infantyProb: [[Number]] - Infantry probability (probabilities are compared together, the ones with higher number have better chance of spawning) |PARAMETER4=
|p4= infantyProb: [[Number]] - Infantry probability (probabilities are compared together, the ones with higher number have better chance of spawning)


|p5= groundProb: [[Number]] - Ground vehicle probability|PARAMETER5=
|p5= groundProb: [[Number]] - Ground vehicle probability


|p6= airProb: [[Number]] - Aicraft probability|PARAMETER6=
|p6= airProb: [[Number]] - Aicraft probability


|p7= marineProb: [[Number]] - Marine probability|PARAMETER7=
|p7= marineProb: [[Number]] - Marine probability


| [[Array]] of groups |RETURNVALUE=
| [[Array]] of groups


|x1= <code>[curator_module, [<nowiki/>[[west]], [[independent]], 0.1, 40, 30, 20, 10] [[call]] [[BIS_fnc_curatorAutomatic]];</code> |EXAMPLE1=
|x1= <code>[curator_module, [<nowiki/>[[west]], [[independent]], 0.1, 40, 30, 20, 10] [[call]] [[BIS_fnc_curatorAutomatic]];</code>


|[[Curator]] |SEEALSO=
|[[Curator]]
}}
}}




<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>

Revision as of 23:36, 17 January 2021

Hover & click on the images for description

Description

Description:
Spawn units based on curator settings. Used when curator role is not taken.
Execution:
call
Groups:
Curator

Syntax

Syntax:
[curator,sides,cheatCoef,infantyProb,groundProb,airProb,marineProb] call BIS_fnc_curatorAutomatic
Parameters:
curator: Object - Curator module, costs and coefficients will be read from it
sides: Array - Array of sides of the placed entities
cheatCoef: Number - Cheat coefficient (1 means default costs, 0.5 means 50% values; allows spawning of more units)
infantyProb: Number - Infantry probability (probabilities are compared together, the ones with higher number have better chance of spawning)
groundProb: Number - Ground vehicle probability
airProb: Number - Aicraft probability
marineProb: Number - Marine probability
Return Value:
Array of groups

Examples

Example 1:
[curator_module, [west, independent, 0.1, 40, 30, 20, 10] call BIS_fnc_curatorAutomatic;

Additional Information

See also:
Curator

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note


Bottom Section