BIS fnc curatorAutomatic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|descr=(.*) \| (.*) " to " |descr= $1 |s1= $2 ")
m (Some wiki formatting)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 1.16
|version1= 1.16


|gr1= Curator
|gr1= Curator


|descr= Spawn units based on curator settings. Used when curator role is not taken.
|descr= Spawn units based on curator settings. Used when curator role is not taken.


|s1= [curator,sides,cheatCoef,infantyProb,groundProb,airProb,marineProb] call [[BIS_fnc_curatorAutomatic]]
|s1= [curator, sides, cheatCoef, infantryProb, groundProb, airProb, marineProb] call [[BIS_fnc_curatorAutomatic]]


|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
Line 17: Line 16:
|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)


|p4= infantyProb: [[Number]] - Infantry probability (probabilities are compared together, the ones with higher number have better chance of spawning)
|p4= infantryProb: [[Number]] - Infantry probability (probabilities are compared together, the ones with higher number have better chance of spawning)


|p5= groundProb: [[Number]] - Ground vehicle probability
|p5= groundProb: [[Number]] - Ground vehicle probability
Line 25: Line 24:
|p7= marineProb: [[Number]] - Marine probability
|p7= marineProb: [[Number]] - Marine probability


| [[Array]] of groups
|r1= [[Array]] of [[Group]]s


|x1= <code>[curator_module, [<nowiki/>[[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>

Revision as of 19:59, 9 June 2021

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