- Found in:
- Vanilla
eventOnDifficultyChanged(intaOldDifficulty, intaNewDifficulty)
Description
Documentation Comment
Event received when the player changes their difficulty
Type is as follows:
0 - Very Easy
1 - Easy
2 - Normal
3 - Hard
4 - Very Hard
5 - Survival
Parameters
intaOldDifficulty
intaNewDifficulty
Examples
Auto-Generated Example
Scriptname MyCoolScript extends ReferenceAlias
event OnDifficultyChanged(int aOldDifficulty, int aNewDifficulty)
Debug.trace("Event received - OnDifficultyChanged: aOldDifficulty = " + aOldDifficulty + " aNewDifficulty = " + aNewDifficulty)
endEvent