scriptStop
Definition
-- @/lua/vehicle/ai.lua:6939
local function scriptStop(...)
M.mode = 'disabled'
scriptai = require("scriptai")
scriptai.scriptStop(...)
M.updateGFX = scriptai.updateGFX
end
Callers
@/lua/vehicle/scriptai.lua
local function scriptStop(centerWheel, engageParkingbrake)
if centerWheel == nil then
@/lua/ge/extensions/flowgraph/nodes/vehicle/ai/scriptAI/followPath.lua
if veh then
veh:queueLuaCommand('ai:scriptStop('..tostring(self.data.handBrakeWhenFinished)..','..tostring(self.data.straightenWheelsWhenFinished)..')')
end
@/lua/ge/extensions/flowgraph/nodes/vehicle/ai/disable.lua
if self.data.useScriptStop then
veh:queueLuaCommand('ai:scriptStop('..tostring(self.data.handBrakeWhenFinished)..','..tostring(self.data.straightenWheelsWhenFinished)..')')
else
@/lua/vehicle/ai.lua
scriptai = require("scriptai")
scriptai.scriptStop(...)
M.updateGFX = scriptai.updateGFX
@/lua/ge/extensions/flowgraph/modules/aiRecordingModule.lua
print("stopping the ai replay")
veh:queueLuaCommand('ai:scriptStop(false, false)')
end
@/lua/ge/extensions/flowgraph/nodes/vehicle/ai/directlyTo.lua
veh:queueLuaCommand('ai:scriptStop('..tostring(self.data.handBrakeWhenFinished)..','..tostring(self.data.straightenWheelsWhenFinished)..')')
end
@/lua/ge/extensions/gameplay/drag/utils.lua
veh:queueLuaCommand('ai.setTarget("drag_stop")')
veh:queueLuaCommand('ai:scriptStop('..tostring(true)..','..tostring(true)..')')
end
@/lua/ge/extensions/editor/scriptAIManager.lua
local vehId = bo:getId()
bo:queueLuaCommand('ai.scriptStop()')
vehState[vehId] = 'idle'
if im.MenuItem1('Reset Recording##'..vehId) then
bo:queueLuaCommand('ai.scriptStop()')
recordings[vehId] = nil