Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.18

Description

Description:Adds the passed value to the unit morale (between 0-1).

Syntax

Syntax:unit addToMorale change
Parameters:
  • unit: Object - Affected unit.
  • change: Number - Change in morale (between -1-1).
Return Value:Nothing

Examples

Examples:
player addToMorale -0.15

Additional Information

See also: getMoraleLevel, getMoraleLongTerm
Multiplayer: 
Problems: 

Notes