-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
I'm making a small private addon with a car that's nearly identical to the "Dukes" from the base pack, but can jump by increasing suspension length for a moment. For that I've added a vehicle and a VSWEP. Both work normally until I add SetSuspensionLength()
VSWEP.Base = "base"
VSWEP.Name = "JUMP!"
if SERVER then
function VSWEP:PrimaryAttack()
local vehicle = self.Vehicle
--print("fish") -- debug text, works properly when uncommented
vehicle:SetSuspensionLength(25) -- doesn't work???
timer.Simple( 0.1, function()
vehicle:SetSuspensionLength(10)
end )
end
end
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels