Difference between revisions of "SetPlayerAIDriven - Game"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Terra Nova2
imported>Terra Nova2
m (Removed my own note as it is no longer accurate.)
 
Line 28: Line 28:
</source>
</source>


== Notes ==
* Some packages are not run with this function. So far known ones are Travel and SitTarget. More testing underway..
== See Also ==
== See Also ==
*[[Game Script]]
*[[Game Script]]

Latest revision as of 01:44, 4 August 2014

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]