skill

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Operation Flashpoint: Resistance version 1.75
  

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint: Resistance
Version:
1.75

Description

Description:
Returns current level of ability of a unit, in range between 0 and 1, 1 being the highest level of skill.

Syntax

Syntax:
skill unitName
Parameters:
unitName: Object
Return Value:
Number

Alternative Syntax

Syntax:
unitName skill skillName (since
Introduced with Armed Assault version 1.00
or
Introduced with Arma 2 version 1.00
)
Parameters:
unitName: Object

skillName: String - Possible values are:

  • aimingAccuracy
  • aimingShake
  • aimingSpeed
  • endurance
  • spotDistance
  • spotTime
  • courage
  • reloadSpeed
  • commanding
  • general
Return Value:

Number

Examples

Example 1:
_skill = skill unit1;
Example 2:
_myCourage = player skill "courage"

Additional Information

Multiplayer:
-
See also:
skillFinalsetSkillsetUnitAbilityCfgAISkillAI Combat Modes

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Unknown
Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
If superAI is enabled all units have skill of 1.0 regardless of the skill slider

Bottom Section