morale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
m (Some wiki formatting)
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma2
|game1= arma2
|version1= 1.00


|1.00
|game2= arma2oa
|version2= 1.50


|gr1= Object Manipulation
|game3= tkoh
|version3= 1.00


| Checks a current morale level of the unit (-1..+1).
|game4= arma3
|version4= 0.50


| '''morale''' unit
|gr1= Object Manipulation


|p1= unit:  [[Object]]
|descr= Get the provided unit's current morale level.


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


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


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


|x1= <sqf>hint format ["Leader's morale: %1", morale leader player];</sqf>


|x1= <code>[[morale]] ([[leader]] [[player]]);//result is 0.5</code>
|seealso= [[skill]] [[setSkill]] [[:Category: AI|Category: AI]]
}}


 
{{Note
|
|user= .kju
 
|timestamp= 20200813105400
|
|text= In {{arma3}} probably affects [[Arma_3_Suppression|Suppression]].
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<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>
<!-- DISCONTINUE Notes -->

Latest revision as of 13: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.