Difference between revisions of "VN ms fnc aiSetSkill"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |a= " to " |author= ") |
Lou Montana (talk | contribs) (Page filling) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 6: | Line 5: | ||
|author= Wyqer, veteran29, Spoffy | |author= Wyqer, veteran29, Spoffy | ||
− | |e= | + | |a= global |
+ | |||
+ | |e= global | ||
|g1= general | |g1= general | ||
− | |d= | + | |d= Configure unit skills. These are tuned for infantry jungle-fighting, and may not work as well on vehicle crews. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |s= [unit] call [[VN_ms_fnc_aiSetSkill]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |p1n= unit | |
− | + | |p1t= object | |
− | + | |p1d= the unit to which to set skill | |
− | |||
− | |||
− | |||
− | |||
− | |p1n= | ||
− | |p1t= | ||
− | |p1d= | ||
|p1v= | |p1v= | ||
Line 74: | Line 25: | ||
|p2v= | |p2v= | ||
− | |r1t= | + | |r1t= boolean |
− | |r1d= | + | |r1d= function's success |
+ | |||
+ | |x1= <code>[bob] call [[VN_ms_fnc_aiSetSkill]];</code> | ||
− | | | + | |x2= <code>private _pedestrians = allUnits select { isNull objectParent _x }; |
+ | { | ||
+ | [_x] call [[VN_ms_fnc_aiSetSkill]]; | ||
+ | } forEach _pedestrians;</code> | ||
}} | }} |
Latest revision as of 17:47, 22 February 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29, Spoffy |
|
Description
Configure unit skills. These are tuned for infantry jungle-fighting, and may not work as well on vehicle crews.
Syntax
- Syntax
- [unit] call VN_ms_fnc_aiSetSkill
- Parameters
- 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;