BIS fnc curatorAutomatic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
Line 12: Line 12:
|p1= curator: [[Object]] - Curator module, costs and coefficients will be read from it
|p1= curator: [[Object]] - Curator module, costs and coefficients will be read from it


|p2= sides: [[Array]] - Array of [[side|sides]] of the placed entities
|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)
|p3= cheatCoef: [[Number]] - Cheat coefficient (1 means default costs, 0.5 means 50% values; allows spawning of more units)
Line 20: Line 20:
|p5= groundProb: [[Number]] - Ground vehicle probability
|p5= groundProb: [[Number]] - Ground vehicle probability


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


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

Revision as of 12:40, 8 November 2023

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, 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:
[curator_module, [west, independent, 0.1, 40, 30, 20, 10] call BIS_fnc_curatorAutomatic;

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