TAW_Yonose 11 Posted June 2, 2014 Hey, can someone help me make a vehicle go faster and more road grip that it wont slide so easy? Share this post Link to post Share on other sites
Tajin 349 Posted June 2, 2014 The easiest way to give a vehicle more grip would be to modify its velocity vector and give it some downward-speed. You could also use https://community.bistudio.com/wiki/velocityModelSpace to get and adjust the lateral velocity, but that is going to be a bit more complex. Share this post Link to post Share on other sites
TAW_Yonose 11 Posted June 2, 2014 Do you have any examples for me with the first one? Share this post Link to post Share on other sites
Tajin 349 Posted June 2, 2014 something like this should suffice: while {damage car < 1} do { _car = _this select 0; if(speed _car > 1) then { _vel = velocity _car; _down = 0.5; // experiment with this _car setVelocity[_vel select 0, _vel select 1,(_vel select 2) - _down]; sleep 0.5; // experiment with this } else { sleep 3; }; }; Share this post Link to post Share on other sites
TAW_Yonose 11 Posted June 2, 2014 i dont see any changes on the kart while im changing the _down and sleep Share this post Link to post Share on other sites
Tajin 349 Posted June 2, 2014 ah, my bad. Had a small error in there. _car = _this select 0; while {damage _car < 1} do { if((speed _car > 1) && local _car) then { _vel = velocity _car; _down = 0.5; // experiment with this _car setVelocity[_vel select 0, _vel select 1,(_vel select 2) - _down]; sleep 0.5; // experiment with this } else { sleep 3; }; }; put this in the init of your car: nul = [this] execVM "thescriptfile.sqf"; It will also only apply the downforce while the car is moving. Share this post Link to post Share on other sites
TAW_Yonose 11 Posted June 2, 2014 (edited) Alright but i still dont see any difference on the grip, will the ground like dirt or road have any effect on this? Also when i had the sleep at 0.2 the kart where like jumping as it was loading each 0.2sec, but at sleep 1 i dident see any what value should it be that i can see the differents? Edited June 2, 2014 by TAW_Yonose Share this post Link to post Share on other sites