Difference between revisions of "setSkill"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
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 00:29, 2 August 2006

Introduced with Operation Flashpoint: Resistance version 1.751.75
Hover & click on the images for descriptions

Description

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

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

i
Only post proven facts here. Report bugs on the feedback tracker and discuss on the Arma Discord or on the Forums.

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