AddAchievement - Game

From the Fallout4 CreationKit Wiki
Revision as of 16:26, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Game Script

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

Syntax[edit | edit source]

Function AddAchievement(int aiAchievementID) native global

Parameters[edit | edit source]

  • aiAchievementID: The ID of the achievement/trophy to award

Return Value[edit | edit source]

None

Examples[edit | edit source]

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

Notes[edit | edit source]

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

See Also[edit | edit source]