BIS fnc curatorAutomatic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 13: Line 13:
____________________________________________________________________________________________
____________________________________________________________________________________________


|p1= curator: [[Object]] - Curator module, costs and coefficients will be read from it |= Parameter 1
|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 |= Parameter 2
|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) |= Parameter 3
|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) |= Parameter 4
|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|= Parameter 4
|p5= groundProb: [[Number]] - Ground vehicle probability|PARAMETER4=
|p6= airProb: [[Number]] - Aicraft probability|= Parameter 4
|p6= airProb: [[Number]] - Aicraft probability|PARAMETER4=
|p7= marineProb: [[Number]] - Marine probability|= Parameter 4
|p7= marineProb: [[Number]] - Marine probability|PARAMETER4=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 14:29, 7 April 2019

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:
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



Notes

Bottom Section