- Found in:
- Vanilla
eventOnDifficultyChanged(ObjectReferenceakSenderRef, 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
Examples
Auto-Generated Example
Scriptname MyCoolScript extends RefCollectionAlias
event OnDifficultyChanged(ObjectReference akSenderRef, int aOldDifficulty, int aNewDifficulty)
Debug.trace("Event received - OnDifficultyChanged: akSenderRef = " + akSenderRef + " aOldDifficulty = " + aOldDifficulty + " aNewDifficulty = " + aNewDifficulty)
endEvent