SetPlayerHasTaken - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 12:28, 27 August 2019 by imported>Ice Eyes (→‎Parameters: Corrected parameter name)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Sets/clears the "player has taken" flag on this reference.

Syntax

Function SetPlayerHasTaken(bool abTaken = true)

Parameters

  • abTaken: True to set the flag, false to clear it
    • Default: True

Return Value

None

Examples

; Flag this comic as the player having taken it already
GrognakComic.SetPlayerHasTaken()


; Clear the flag on the comic
GrognakComic.SetPlayerHasTaken(false)

See Also