BIS fnc curatorAutomatic: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Curator(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Curator |GROUP1= | |gr1 = Curator |GROUP1= | ||
| 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.|DESCRIPTION= | ||
| [curator,sides,cheatCoef,infantyProb,groundProb,airProb,marineProb] call [[BIS_fnc_curatorAutomatic]] |SYNTAX= | | [curator,sides,cheatCoef,infantyProb,groundProb,airProb,marineProb] call [[BIS_fnc_curatorAutomatic]] |SYNTAX= | ||
|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= | ||
Line 28: | Line 24: | ||
|p7= marineProb: [[Number]] - Marine probability|PARAMETER7= | |p7= marineProb: [[Number]] - Marine probability|PARAMETER7= | ||
| [[Array]] of groups |RETURNVALUE= | | [[Array]] of groups |RETURNVALUE= | ||
|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> |EXAMPLE1= | ||
|[[Curator]] |SEEALSO= | |[[Curator]] |SEEALSO= |
Revision as of 22:35, 16 January 2021
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