Background for Fallout 4
Member of the Game script
voidfunctionAddAchievement(intaiAchievementID)NativeGlobal

Description

Wiki Description

Adds the specified achievement/trophy to the player's gamer profile.

Documentation Comment

Adds the specified achievement to the player's profile


Caveats

CK Wiki - Notes

  • This function will also spit out a message to the Papyrus log for debugging purposes.

Parameters

intaiAchievementID

CK Wiki Description

The ID of the achievement/trophy to award


Examples

; Give the player achievement/trophy #9
Game.AddAchievement(9)

Auto-Generated Example

int myInt__aiAchievementID

Game.AddAchievement(myInt__aiAchievementID)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.