setUnitTrait: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">") |
Lou Montana (talk | contribs) m (Text replacement - " <dd class="notedate">" to " <dt><dt> <dd class="notedate">") |
||
Line 37: | Line 37: | ||
The higher the value for the loadCoef the less stamina a unit has. Negative values will dramatically increase the stamina actually to a point where it extends the stamina bar. | The higher the value for the loadCoef the less stamina a unit has. Negative values will dramatically increase the stamina actually to a point where it extends the stamina bar. | ||
</dd> | </dd> | ||
<dt><dt> | |||
<dd class="notedate">Posted on October 20, 2017 - 05:49 (UTC)</dd> | <dd class="notedate">Posted on October 20, 2017 - 05:49 (UTC)</dd> | ||
<dt class="note">[[User:Midnight|Midnight]]</dt> | <dt class="note">[[User:Midnight|Midnight]]</dt> |
Revision as of 00:10, 6 April 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unit: Object - The unit whose trait should be set
- skillName: String - Name of the skill
- value: Boolean or Number - Value (see above)
- isCustom (optional): Boolean - Must be set to true in case of custom
- Return Value:
- Return value needed
Examples
- Example 1:
player setUnitTrait ["Medic",true];
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
- Posted on April 27, 2016 - 18:12 (UTC)
- R3vo
- The higher the value for the loadCoef the less stamina a unit has. Negative values will dramatically increase the stamina actually to a point where it extends the stamina bar.
- Posted on October 20, 2017 - 05:49 (UTC)
- Midnight
- explosiveSpecialist trait can defuse mines (i.e. satchel charges), whilst the engineer trait alone cannot.