skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


[[Number]]
[[Number]]
'''Compatibility:'''
Added in version '''1.75'''


'''Description:'''
'''Description:'''


Returns current level of ability of person, in range between 0 and 1.
Returns current level of ability of '''person''', in range between 0 and 1.


Skill 1 is highest skill.
Skill 1 is highest skill.


'''Example:'''
'''Example:'''


_sk = '''skill''' loon1
_sk = '''skill''' loon1


'''Comments'''
'''Comments'''


Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
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.
If superAI is enabled all units have skill of 1.0 regardless of the skill slider.

Revision as of 11:31, 17 April 2006

back to COMREF

skill person

Operand types:

person: Object

Type of returned value:

Number

Compatibility:

Added in version 1.75

Description:

Returns current level of ability of person, in range between 0 and 1.

Skill 1 is highest skill.


Example:

_sk = skill loon1


Comments

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.