Skip to content
VN_ms_fnc_aiSetSkill

VN_ms_fnc_aiSetSkill

v1.00Theme: AI, Spawning & Enemy ActivityGroup: General (mission system)Arguments: globalEffects: globalReturns: Boolean

Configure unit skills. These are tuned for infantry jungle-fighting, and may not work as well on vehicle crews.

Syntax

[unit] call VN_ms_fnc_aiSetSkill

Parameters

ParameterTypeDefaultDescription
unit Object— the unit to which to set skill

Return value

Boolean - function’s success

Examples

Example 1

[bob] call VN_ms_fnc_aiSetSkill;

Example 2

private _pedestrians = allUnits select { isNull objectParent _x };
{
	[_x] call VN_ms_fnc_aiSetSkill;
} forEach _pedestrians;

Documented by Wyqer, veteran29, Spoffy.