isAtParkingSpeed
Definition
-- @/lua/ge/extensions/gameplay/walk.lua:296
local function isAtParkingSpeed()
return atParkingSpeed
end
Callers
@/lua/ge/extensions/flowgraph/nodes/gameplay/canEnterFromWalking.lua
function C:work(args)
self.pinOut.canEnter.value = gameplay_walk.isWalking() and gameplay_walk.getVehicleInFront() and gameplay_walk.isAtParkingSpeed()
self.pinOut.closeButNotStopped.value = gameplay_walk.isWalking() and gameplay_walk.getVehicleInFront() and not gameplay_walk.isAtParkingSpeed()
self.pinOut.canEnter.value = gameplay_walk.isWalking() and gameplay_walk.getVehicleInFront() and gameplay_walk.isAtParkingSpeed()
self.pinOut.closeButNotStopped.value = gameplay_walk.isWalking() and gameplay_walk.getVehicleInFront() and not gameplay_walk.isAtParkingSpeed()
self.pinOut.vehId.value = gameplay_walk.getVehicleInFront() and gameplay_walk.getVehicleInFront():getID() or nil
if gameplay_walk then
editor.uiIconImage(editor.icons.simobject_bng_vehicle, im.ImVec2(40, 40), (gameplay_walk.isWalking() and gameplay_walk.getVehicleInFront() and gameplay_walk.isAtParkingSpeed()) and im.ImVec4(0.3,1,0.3,1) or im.ImVec4(1,1,1,0.3))
end
@/lua/ge/extensions/core/quickAccess.lua
}
if not gameplay_walk.isAtParkingSpeed() then
e.enabled = false