• prop_vehicle* steer inputs acts strangely.
    1 replies, posted
Just Encountered something very odd. When used this code:[LUA]hook.Add("Think", "Example_think", function() for _,veh in pairs(ents.FindByClass("prop_vehicle_jeep")) do if !veh.Turned then veh:Fire("Steer", -1) veh.Turned = true end end end)[/LUA]It should make every vehicle on the map steer left by a value of 1, but it steers only about 1/20 of what its supposed to. To get around this problem I loop the same code for about 20 times to get the results. The weird thing is that when used in lua_run:[CODE]lua_run for k,v in pairs(ents.FindByClass("prop_vehicle_jeep")) do v:Fire("Steer", -1) end[/CODE]It works perfectly. Am I doing something wrong?
Could anyone test this if this happens to you too, or if my gmod is acting strange?
Sorry, you need to Log In to post a reply to this thread.