Background for Starfield
Member of the RefCollectionAlias script
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

ObjectReferenceakSenderRef

intaOldDifficulty

intaNewDifficulty


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