Difference between revisions of "cmf kosherArsenal fnc kosherAI"

From cluster wiki
Jump to navigation Jump to search
(Created page with "{{CMF Function |game1=arma3 |version1=0.50 |game2=cmf3 |version2=2.1.0 |descr=This function will make AI of given side to receive a new loadout from a kosherArsenal loadout...")
 
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
|version2=2.1.0
|version2=2.1.0


|descr=This function will make AI of given side to receive a new loadout from a kosherArsenal loadoutfile, this can be used to make custom enemy factions.
|descr=This function will make AI of given side to receive a new loadout from a kosherArsenal loadoutfile, this can be used to make custom enemy factions. The units will receive one of the following roles based on their class attributes, weapon and group priority:
* "SL": Squad Leader
* "MED": Medic
* "ENG": Engineer
* "AT": Anti-Tank
* "MG": machinegunner
* "MAR": Sniper / Marksman
* "RFL": Rifleman


|exec=Call
|exec=Call
Line 22: Line 29:


|x1= {{code|lang=scilab|[east, "exampleLoadout"] call cmf_kosherArsenal_fnc_kosherAI;}}
|x1= {{code|lang=scilab|[east, "exampleLoadout"] call cmf_kosherArsenal_fnc_kosherAI;}}
|seealso= [[cmf_kosherArsenal_fnc_ammobox]] [[cmf_kosherArsenal_fnc_forceArsenal]] [[cmf_kosherArsenal_fnc_forceClose]]
[[cmf_kosherArsenal_fnc_init]]


|var1= {{!}} GLOBAL {{!}}{{!}} Mission {{!}}{{!}} cmf_kosherArsenal_kosherai_disable {{!}}{{!}} A variable that when true will disable kosherAI
|var1= {{!}} GLOBAL {{!}}{{!}} Mission {{!}}{{!}} cmf_kosherArsenal_kosherai_disable {{!}}{{!}} A variable that when true will disable kosherAI
Line 27: Line 37:
|var3= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_kosherArsenal_kosherai_role{{!}}{{!}} A variable that is true when unit has been initialized with kosherAI
|var3= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_kosherArsenal_kosherai_role{{!}}{{!}} A variable that is true when unit has been initialized with kosherAI


|event1= {{!}} LOCAL {{!}}{{!}} cmf_kosherArsenal_kosherai_onEnabled {{!}}{{!}} [unit, role] {{!}}{{!}} Is raised when kosherAI is enabled on a unit
|event1= {{!}} GLOBAL {{!}}{{!}} cmf_kosherArsenal_kosherai_onEnabled {{!}}{{!}} [unit, role] {{!}}{{!}} Is raised when kosherAI is enabled on a unit
}}
}}

Latest revision as of 21:50, 17 December 2022


Hover & click on the images for description
Description
Description:
This function will make AI of given side to receive a new loadout from a kosherArsenal loadoutfile, this can be used to make custom enemy factions. The units will receive one of the following roles based on their class attributes, weapon and group priority:
  • "SL": Squad Leader
  • "MED": Medic
  • "ENG": Engineer
  • "AT": Anti-Tank
  • "MG": machinegunner
  • "MAR": Sniper / Marksman
  • "RFL": Rifleman
Execution:
Call
Groups:
CMF3: kosherArsenal
Syntax
Syntax:
[side, file] call cmf_kosherArsenal_fnc_kosherAI
Parameters:
side: Side - The side to apply the arsenal to
file: String - Filename of the kosherArsenal loadoutfile (ommit .sqf)
Return Value:
None
Examples
Example 1:
[east, "exampleLoadout"] call cmf_kosherArsenal_fnc_kosherAI;
Additional Information
See also:
cmf_kosherArsenal_fnc_ammobox cmf_kosherArsenal_fnc_forceArsenal cmf_kosherArsenal_fnc_forceClose cmf_kosherArsenal_fnc_init
Internal Variables
Locality Namespace Name Description
GLOBAL Mission cmf_kosherArsenal_kosherai_disable A variable that when true will disable kosherAI
GLOBAL Unit cmf_kosherArsenal_kosherai_initialized A String variable containing the unit's role
GLOBAL Unit cmf_kosherArsenal_kosherai_role A variable that is true when unit has been initialized with kosherAI
Events
Locality Name Variables Description
GLOBAL cmf_kosherArsenal_kosherai_onEnabled [unit, role] Is raised when kosherAI is enabled on a unit
Notes