setUnitAbility: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Clarification.)
Line 23: Line 23:
'''Description:'''
'''Description:'''


Sets skill of given unit.
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.  
Skill may vary from 0.2 to 1.0.  
Line 30: Line 30:
'''Example:'''
'''Example:'''


player '''setUnitSkill''' 1.0
player '''setUnitAbility''' 1.0

Revision as of 22:19, 18 July 2006


unit setUnitAbility skill


Operand types:

unit: Object

skill: Number

Type of returned value:

Nothing

Compatibility:

Version 2.33 required.

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.


Example:

player setUnitAbility 1.0