Difference between revisions of "SetPlayerHasTaken - ObjectReference"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
 
imported>Ice Eyes
m (→‎Parameters: Corrected parameter name)
 
Line 12: Line 12:


== Parameters ==
== Parameters ==
*abToken: True to set the flag, false to clear it
*abTaken: True to set the flag, false to clear it
**'''Default''': True
**'''Default''': True



Latest revision as of 12:28, 27 August 2019

Member of: ObjectReference Script

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

Syntax[edit | edit source]

Function SetPlayerHasTaken(bool abTaken = true)

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None

Examples[edit | edit source]

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


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

See Also[edit | edit source]