BIS fnc curatorAutomatic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (GVI 1.00 --> 1.16 http://dev.arma3.com/post/spotrep-00023 (It's Zeus update, obvious))
m (pf)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Spawn units based on curator settings. Used when curator role is not taken.|= Description
____________________________________________________________________________________________


Description:
| [curator,sides,cheatCoef,infantyProb,groundProb,airProb,marineProb] call [[BIS_fnc_curatorAutomatic]] |= Syntax
Spawn units based on curator settings.
____________________________________________________________________________________________
Used when curator role is not taken.


Parameter(s):
|p1= curator: [[Object]] - Curator module, costs and coefficients will be read from it |= Parameter 1
0: OBJECT - curator (costs and coefficients will be read from it)
|p2= sides: [[Array]] - Array of [[side|sides]] of the placed entities |= Parameter 2
1: ARRAY of SIDEs - sides of placed units
|p3= cheatCoef: [[Number]] - Cheat coefficient (1 means default costs, 0.5 means 50% values; allows spawning of more units) |= Parameter 3
2: 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) |= Parameter 4
3: NUMBER - infantry probability (probabilities are compared together, the ones with higher number have better chance of spawning)
|p5= groundProb: [[Number]] - Ground vehicle probability|= Parameter 4
4: NUMBER - ground vehicles probability
|p6= airProb: [[Number]] - Aicraft probability|= Parameter 4
5: NUMBER - aircrafts probability
|p7= marineProb: [[Number]] - Marine probability|= Parameter 4
6: NUMBER - marine probability
____________________________________________________________________________________________


Returns:
| [[Array]] of groups|= Return value
ARRAY of GROUPs
____________________________________________________________________________________________
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x1= <code>[curator_module,[ [[west]], [[independent]] ,0.1,40,30,20,10] [[call]] [[BIS_fnc_curatorAutomatic]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_curatorAutomatic]]; --> |= Syntax
|[[Curator]] |= See also
}}


|p1= |= Parameter 1


| |= Return value
____________________________________________________________________________________________


|x1= <code></code> |=
____________________________________________________________________________________________
| |= See also
}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>

Revision as of 14:10, 30 May 2018

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