setSkill: 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|SETSKILL]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETSKILL]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETSKILL]]


| ofpr |= Game name


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


| Sets ability level of person (commander unit). Value of skill may vary from 0 to 1. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| vehicle '''setSkill''' skill |= Syntax


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


'''skill:''' [[Number]]
|p2= skill: [[Number]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>hero setskill 1</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= 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>


Sets ability level of person (commander unit).
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


Value of skill may vary from 0 to 1.
Approximate ranges are:
 
*Novice < 0.25
 
*Rookie >= 0.25 and <= 0.45
'''Example:'''
*Recruit > 0.45 and <= 0.65
 
*Veteran > 0.65 and <= 0.85
hero '''setskill''' 1
*Expert > 0.85
 
[[Category:Scripting Commands|SETSKILL]]
 
[[Category:Scripting Commands OFP 1.96|SETSKILL]]
'''Comments:'''
[[Category:Scripting Commands ArmA|SETSKILL]]
 
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:29, 1 August 2006

Hover & click on the images for description

Description

Description:
Sets ability level of person (commander unit). Value of skill may vary from 0 to 1.
Groups:
Uncategorised

Syntax

Syntax:
vehicle setSkill skill
Parameters:
vehicle: Object
skill: Number
Return Value:
Nothing

Examples

Example 1:
hero setskill 1

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

Old Notes (temporary):

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