skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SKILL]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SKILL]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SKILL]]


| ofpr |= Game name


<h2 style="color:#000066">'''skill ''person'''''</h2>
|1.75|= Game version
____________________________________________________________________________________________


| Returns current level of ability of person, in range between 0 and 1. Skill 1 is highest skill. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''skill''' person |= Syntax


'''person:''' [[Object]]
|p1= person: [[Object]] |= Parameter 1


'''Type of returned value:'''
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_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.</pre> |= Example 1
____________________________________________________________________________________________


[[Number]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.75'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Returns current level of ability of '''person''', in range between 0 and 1.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SKILL]]
Skill 1 is highest skill.
[[Category:Scripting Commands OFP 1.96|SKILL]]
 
[[Category:Scripting Commands ArmA|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.

Revision as of 23:46, 1 August 2006

Hover & click on the images for description

Description

Description:
Returns current level of ability of person, in range between 0 and 1. Skill 1 is highest skill.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_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.

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section