Difference between revisions of "setSkill"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 31: Line 31:
  
 
hero '''setskill''' 1
 
hero '''setskill''' 1
 +
 +
 +
'''Comments:'''<br>
 +
Approximate ranges are:<br>
 +
'''Novice'''    < 0.25<br>
 +
'''Rookie'''    >= 0.25 and <= 0.45<br>
 +
'''Recruit'''    > 0.45 and <= 0.65<br>
 +
'''Veteran'''    > 0.65 and <= 0.85<br>
 +
'''Expert'''    > 0.85<br>

Revision as of 23:02, 1 May 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