Background for Starfield
Member of the ReferenceAlias script
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
Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.