morale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Some wiki formatting)
 
(4 intermediate revisions by the same user not shown)
Line 15: Line 15:
|gr1= Object Manipulation
|gr1= Object Manipulation


|descr= Checks a current morale level of the unit (-1..+1).
|descr= Get the provided unit's current morale level.


|s1= [[morale]] unit
|s1= [[morale]] unit


|p1= unit: [[Object]]
|p1= unit: [[Object]]


|r1= [[Number]]
|r1= [[Number]] - in range -1..+1


|x1= <code>morale ([[leader]] [[player]]);//result is 0.5</code>
|x1= <sqf>hint format ["Leader's morale: %1", morale leader player];</sqf>


|seealso= [[skill]] [[setSkill]] [[:Category: AI]]
|seealso= [[skill]] [[setSkill]] [[:Category: AI|Category: AI]]
}}
}}


 
{{Note
<dl class="command_description">
|user= .kju
 
|timestamp= 20200813105400
<dt></dt>
|text= In {{arma3}} probably affects [[Arma_3_Suppression|Suppression]].
<dd class="notedate">Posted on August 13, 2020 - 10:54 (UTC)</dd>
}}
<dt class="note">[[User:.kju|.kju]]</dt>
<dd class="note">
In Arma 3 probably affects [[Arma_3_Suppression|Suppression]].
</dd>
 
</dl>

Latest revision as of 12:22, 21 February 2023

Hover & click on the images for description

Description

Description:
Get the provided unit's current morale level.
Groups:
Object Manipulation

Syntax

Syntax:
morale unit
Parameters:
unit: Object
Return Value:
Number - in range -1..+1

Examples

Example 1:
hint format ["Leader's morale: %1", morale leader player];

Additional Information

See also:
skill setSkill Category: AI

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
.kju - c
Posted on Aug 13, 2020 - 10:54 (UTC)
In Arma 3 probably affects Suppression.