morale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(links)
m (Some wiki formatting)
 
(45 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| Checks a current morale level of the unit (-1..+1). |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''morale''' unit |= Syntax
|game4= arma3
|version4= 0.50


|p1= unit:  [[Object]]  |= PARAMETER1
|gr1= Object Manipulation


|p2= |= PARAMETER2
|descr= Get the provided unit's current morale level.


|p3= |= PARAMETER3
|s1= [[morale]] unit


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


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


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


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


| |= SEEALSO
{{Note
 
|user= .kju
| |= MPBEHAVIOUR
|timestamp= 20200813105400
____________________________________________________________________________________________
|text= In {{arma3}} probably affects [[Arma_3_Suppression|Suppression]].
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

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.