BIS fnc curatorAutomatic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Curator |GROUP1=")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *M([a-z ])" to "$1 - m$2")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.16


|1.16|Game version=
|gr1= Curator


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


| Spawn units based on curator settings. Used when curator role is not taken.|DESCRIPTION=
|s1= [curator, sides, cheatCoef, infantryProb, groundProb, airProb, marineProb] call [[BIS_fnc_curatorAutomatic]]
____________________________________________________________________________________________


| [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
____________________________________________________________________________________________


|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


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


|p3= cheatCoef: [[Number]] - Cheat coefficient (1 means default costs, 0.5 means 50% values; allows spawning of more units) |PARAMETER3=
|p4= infantryProb: [[Number]] - infantry probability (probabilities are compared together, the ones with higher number have better chance of spawning)


|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


|p5= groundProb: [[Number]] - Ground vehicle probability|PARAMETER5=
|p6= airProb: [[Number]] - aicraft probability


|p6= airProb: [[Number]] - Aicraft probability|PARAMETER6=
|p7= marineProb: [[Number]] - marine probability


|p7= marineProb: [[Number]] - Marine probability|PARAMETER7=
|r1= [[Array]] of [[Group]]s
____________________________________________________________________________________________


| [[Array]] of groups |RETURNVALUE=
|x1= <sqf>[curator_module, [west, independent, 0.1, 40, 30, 20, 10] call BIS_fnc_curatorAutomatic;</sqf>
____________________________________________________________________________________________


|x1= <code>[curator_module, [<nowiki/>[[west]], [[independent]], 0.1, 40, 30, 20, 10] [[call]] [[BIS_fnc_curatorAutomatic]];</code> |EXAMPLE1=
|seealso= [[Arma 3: Curator]]
____________________________________________________________________________________________
 
|[[Curator]] |SEEALSO=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Curator|{{uc:curatorAutomatic}}]]

Latest revision as of 16:39, 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