BIS fnc curatorAutomatic: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) |
||
Line 14: | Line 14: | ||
|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 |PARAMETER1= | ||
|p2= sides: [[Array]] - Array of [[side|sides]] of the placed entities |PARAMETER2= | |p2= sides: [[Array]] - Array of [[side|sides]] of the placed entities |PARAMETER2= | ||
|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) |PARAMETER3= | ||
|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) |PARAMETER4= | ||
|p5= groundProb: [[Number]] - Ground vehicle probability| | |||
|p6= airProb: [[Number]] - Aicraft probability| | |p5= groundProb: [[Number]] - Ground vehicle probability|PARAMETER5= | ||
|p7= marineProb: [[Number]] - Marine probability| | |||
|p6= airProb: [[Number]] - Aicraft probability|PARAMETER6= | |||
|p7= marineProb: [[Number]] - Marine probability|PARAMETER7= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Array]] of groups|RETURNVALUE= | | [[Array]] of groups |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[curator_module,[ [[west]], [[independent]] ,0.1,40,30,20,10] [[call]] [[BIS_fnc_curatorAutomatic]];</code> |= | |x1= <code>[curator_module, [<nowiki/>[[west]], [[independent]], 0.1, 40, 30, 20, 10] [[call]] [[BIS_fnc_curatorAutomatic]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[Curator]] |SEEALSO= | |[[Curator]] |SEEALSO= | ||
}} | }} | ||
<h3 style="display:none">Notes</h3> | <h3 style="display:none">Notes</h3> | ||
Line 43: | Line 46: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Function Group: Curator|{{uc:curatorAutomatic}}]] | [[Category:Function Group: Curator|{{uc:curatorAutomatic}}]] | ||
Revision as of 02:35, 25 September 2020
Description
- Description:
- Spawn units based on curator settings. Used when curator role is not taken.
- Execution:
- call
- Groups:
- Uncategorised
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