BIS fnc curatorAutomatic: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \|descr=(.*) \| (.*) " to " |descr= $1 |s1= $2 ") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *M([a-z ])" to "$1 - m$2") |
||
(10 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.16 | |version1= 1.16 | ||
|gr1= Curator | |gr1= Curator | ||
|descr= | |descr= Spawn units based on curator settings. Used when curator role is not taken. | ||
|s1= [curator,sides,cheatCoef, | |s1= [curator, sides, cheatCoef, infantryProb, groundProb, airProb, marineProb] call [[BIS_fnc_curatorAutomatic]] | ||
|p1= curator: [[Object]] - | |p1= curator: [[Object]] - curator module, costs and coefficients will be read from it | ||
|p2= sides: [[Array]] - | |p2= sides: [[Array]] - array of [[side|sides]] of the placed entities | ||
|p3= cheatCoef: [[Number]] - | |p3= cheatCoef: [[Number]] - cheat coefficient (1 means default costs, 0.5 means 50% values; allows spawning of more units) | ||
|p4= | |p4= infantryProb: [[Number]] - infantry probability (probabilities are compared together, the ones with higher number have better chance of spawning) | ||
|p5= groundProb: [[Number]] - | |p5= groundProb: [[Number]] - ground vehicle probability | ||
|p6= airProb: [[Number]] - | |p6= airProb: [[Number]] - aicraft probability | ||
|p7= marineProb: [[Number]] - | |p7= marineProb: [[Number]] - marine probability | ||
| [[Array]] of | |r1= [[Array]] of [[Group]]s | ||
|x1= < | |x1= <sqf>[curator_module, [west, independent, 0.1, 40, 30, 20, 10] call BIS_fnc_curatorAutomatic;</sqf> | ||
|seealso= [[Arma 3: Curator]] | |seealso= [[Arma 3: Curator]] | ||
}} | }} |
Latest revision as of 15:39, 8 November 2023
Description
- Description:
- Spawn units based on curator settings. Used when curator role is not taken.
- Execution:
- call
- Groups:
- Curator
Syntax
- Syntax:
- [curator, sides, cheatCoef, infantryProb, 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)
- infantryProb: 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:
Additional Information
- See also:
- Arma 3: 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