22 lines
540 B
Plaintext
22 lines
540 B
Plaintext
Scriptname _00E_Func_AIWalk Hidden
|
|
|
|
function PlayerAIWalkStop() Global
|
|
|
|
Game.ShowFirstPersonGeometry(True)
|
|
Game.SetPlayerAIDriven(False)
|
|
Game.EnablePlayerControls()
|
|
|
|
endFunction
|
|
|
|
function PlayerAIWalk(bool abLockedSight = True) Global
|
|
|
|
Game.ShowFirstPersonGeometry(False)
|
|
Game.SetPlayerAIDriven(True)
|
|
If abLockedSight == True
|
|
Game.DisablePlayerControls(true, true, true, true, true, true, true, true)
|
|
ElseIf abLockedSight == False
|
|
Game.DisablePlayerControls(true, true, true, False, true, true, true, true)
|
|
EndIf
|
|
|
|
endFunction
|