setUnitAbility: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Clarification.)
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETUNITABILITY]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETUNITABILITY]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETUNITABILITY]]


| arma |= Game name


<h2 style="color:#000066">'''''unit'' setUnitAbility ''skill'''''</h2>
|2.33|= Game version
____________________________________________________________________________________________


| Sets skill of given unit. This command will probably differ in some future products, but currently it does the same as [[setSkill]]. Skill may vary from 0.2 to 1.0. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| unit '''setUnitAbility''' skill |= Syntax


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


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


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


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 2.33 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


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


Sets skill of given unit. This command will probably differ in some future products, but currently it does the same as [[setSkill]].
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETUNITABILITY]]
Skill may vary from 0.2 to 1.0.
[[Category:Scripting Commands OFP Elite |SETUNITABILITY]]
 
[[Category:Scripting Commands ArmA|SETUNITABILITY]]
 
'''Example:'''
 
player '''setUnitAbility''' 1.0

Revision as of 23:33, 1 August 2006

-wrong parameter ("Arma") defined!-2.33
Hover & click on the images for description

Description

Description:
Sets skill of given unit. This command will probably differ in some future products, but currently it does the same as setSkill. Skill may vary from 0.2 to 1.0.
Groups:
Uncategorised

Syntax

Syntax:
unit setUnitAbility skill
Parameters:
unit: Object
skill: Number
Return Value:
Nothing

Examples

Example 1:
player setUnitAbility 1.0

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