#Xbox Scripted EVC
1 messages Β· Page 1 of 1 (latest)
So for some reason I can't script Xbox controller on evc
yeah itβs bugged for me too
parker is gonna have to fix it. he might already be looking at it
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
@tidal swallow no worries kid I got you
--[[
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
Where do I put this?
make use to put that in EVCPlugin_Client
nah just put all it inn there
then use that for the settings
if so
i can gie you a xbox one
@tidal swallow here is thexbox one π
Can we do PC and Xbox
Or no
idk never try it
Also technically a turn signal override would be easy correct?
This will be fixed in the next update
π±
Turn over ride