#Xbox Scripted EVC

1 messages Β· Page 1 of 1 (latest)

tidal swallow
tidal swallow
#

So for some reason I can't script Xbox controller on evc

median ibex
#

yeah it’s bugged for me too

#

parker is gonna have to fix it. he might already be looking at it

fresh needle
#

very much not πŸ‘

#

Super busy rn havent had time to debug it

#

Although anyone is welcome to fix it themselves and create a pull request, thats why it is open source

lilac stag
#

@tidal swallow no worries kid I got you

lilac stag
#

--[[
Redon Tech 2023
EVC V2
--]]


-- Init --

local Car = script.Parent.Car.Value
local Event = Car:WaitForChild("EVCRemote")
local UserInputService = game:GetService("UserInputService")
local Values = script.Parent.Values


-- Handling --

Values.PBrake:GetPropertyChangedSignal("Value"):Connect(function()
Event:FireServer("DoOverride", "PBrake", Values.PBrake.Value)
end)

Values.Brake:GetPropertyChangedSignal("Value"):Connect(function()
Event:FireServer("DoOverride", "Brake", Values.Brake.Value)
end)

Values.Gear:GetPropertyChangedSignal("Value"):Connect(function()
Event:FireServer("DoOverride", "Gear", Values.Gear.Value)
end)

local function input(InputObj: InputObject, gameProcessedEvent: BoolValue)
if not gameProcessedEvent and InputObj.UserInputType == Enum.UserInputType.Gamepad1 then
Event:FireServer("Input", InputObj.UserInputState, InputObj.UserInputType, InputObj.KeyCode)
end
end

UserInputService.InputBegan:Connect(input)
UserInputService.InputChanged:Connect(input)
UserInputService.InputEnded:Connect(input) @median ibex

#

@tidal swallow

tidal swallow
lilac stag
#

make use to put that in EVCPlugin_Client

tidal swallow
#

Orrrr

lilac stag
#

nah just put all it inn there

lilac stag
#

if so

#

i can gie you a xbox one

tidal swallow
#

Or no

lilac stag
#

idk never try it

tidal swallow
#

Also technically a turn signal override would be easy correct?

lilac stag
#

i think

#

i can send you a xbox car

fresh needle
#

This will be fixed in the next update

lost fossil
#

😱

tidal swallow
#

Turn over ride