SetPlayerAIDriven - Game

From the Fallout4 CreationKit Wiki
(Redirected from SetPlayerAIDriven)
Jump to navigation Jump to search

Member of: Game Script

Set the state of the player as AI driven to allow for the player run packages

Syntax[edit | edit source]

Function SetPlayerAIDriven(bool abAIDriven = true) native global

Parameters[edit | edit source]

  • abAIDriven: Specifies whether to turn the AI flag on or off
    • Default: True

Return Value[edit | edit source]

None

Examples[edit | edit source]

; Turn on the AI driven flag
Game.SetPlayerAIDriven()


; Turn off the AI driven flag
Game.SetPlayerAIDriven(false)

See Also[edit | edit source]