setSkill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETSKILL]]
[[Category:Scripting Commands|SETSKILL]]
[[Category:Scripting Commands OFP 1.97|SETSKILL]]
[[Category:Scripting Commands OFP 1.96|SETSKILL]]
[[Category:Scripting Commands ArmA|SETSKILL]]
[[Category:Scripting Commands ArmA|SETSKILL]]



Revision as of 21:33, 1 June 2006


vehicle setSkill skill


Operand types:

vehicle: Object

skill: Number

Type of returned value:

Nothing

Compatibility:

Added in version 1.75

Description:

Sets ability level of person (commander unit).

Value of skill may vary from 0 to 1.


Example:

hero setskill 1


Comments:

Approximate ranges are:

Novice < 0.25
Rookie >= 0.25 and <= 0.45
Recruit > 0.45 and <= 0.65
Veteran > 0.65 and <= 0.85
Expert > 0.85