BIS fnc EXP camp dynamicAISkill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<mediawiki xml:lang="en">
{{RV|type=function
<page>
<title>BIS_fnc_EXP_camp_dynamicAISkill</title>
<revision>
<timestamp>2006-04-03T17:42:00Z</timestamp>
<contributor></contributor>
<comment>Generated by BIS_fnc_exportFunctionsToWiki</comment>
<text>
{{Function|= Comments
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.62


|1.00|= Game version
|gr1= Campaign
____________________________________________________________________________________________


| &lt;pre&gt;/*
|serverExec= server


Description:
|descr= Changes AI skill based on player count, responding to player connected / player disconnected events. This function does exactly the same as [[BIS_fnc_EXP_camp_setSkill]] execept that it automatically executes when a player joins or disconnects.
Changes AI skill based on player count, responding to player connected / player disconnected events


Parameters:
|s1= [mode, affectedSides] call [[BIS_fnc_EXP_camp_dynamicAISkill]]
_this select 0: Mode - True to enable, false to disable
_this select 1: Affected Sides - The affected sides and their skill sets


Returns:
|p1= mode: [[Boolean]] - (Optional, default [[true]]) [[true]] to enable, [[false]] to disable
Nothing
*/


// Server only
|p2= affectedSides: [[Array]] - array of affected sides and their skill sets. For details see [[BIS_fnc_EXP_camp_setSkill]]
&lt;/pre&gt;&lt;small&gt;''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''&lt;/small&gt; |= Description
____________________________________________________________________________________________


| &lt;!-- [] call [[BIS_fnc_EXP_camp_dynamicAISkill]]; --&gt; |= Syntax
|r1= [[Nothing]]


|p1= |= Parameter 1
|x1= <sqf>
 
[
| |= Return value
true,
____________________________________________________________________________________________
[
 
[WEST, 0.1, 0.2, 0.7, 0.6],
|x1= &lt;code&gt;&lt;/code&gt; |=
[EAST, 0.1, 0.2, 0.7, 0.6]
____________________________________________________________________________________________
]
 
] call BIS_fnc_EXP_camp_dynamicAISkill;
| |= See also
</sqf>


|seealso= [[Arma 3 AI Skill]] [[setSkill]] [[skillFinal]] [[BIS_fnc_EXP_camp_setSkill]]
}}
}}
&lt;h3 style="display:none"&gt;Notes&lt;/h3&gt;
&lt;dl class="command_description"&gt;
&lt;!-- Note Section BEGIN --&gt;
&lt;!-- Note Section END --&gt;
&lt;/dl&gt;
&lt;h3 style="display:none"&gt;Bottom Section&lt;/h3&gt;
[[Category:Function Group: Campaign|{{uc:EXP_camp_dynamicAISkill}}]]
[[Category:Functions|{{uc:EXP_camp_dynamicAISkill}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:EXP_camp_dynamicAISkill}}]]
</text>
<minor/>
</revision>
</page>
</mediawiki>

Revision as of 13:40, 8 November 2023

Hover & click on the images for description

Description

Description:
Changes AI skill based on player count, responding to player connected / player disconnected events. This function does exactly the same as BIS_fnc_EXP_camp_setSkill execept that it automatically executes when a player joins or disconnects.
Execution:
call
Groups:
Campaign

Syntax

Syntax:
[mode, affectedSides] call BIS_fnc_EXP_camp_dynamicAISkill
Parameters:
mode: Boolean - (Optional, default true) true to enable, false to disable
affectedSides: Array - array of affected sides and their skill sets. For details see BIS_fnc_EXP_camp_setSkill
Return Value:
Nothing

Examples

Example 1:
[ true, [ [WEST, 0.1, 0.2, 0.7, 0.6], [EAST, 0.1, 0.2, 0.7, 0.6] ] ] call BIS_fnc_EXP_camp_dynamicAISkill;

Additional Information

See also:
Arma 3 AI Skill setSkill skillFinal BIS_fnc_EXP_camp_setSkill

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