View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008522||New issues||Vehicles||public||2014-09-07 11:38||2018-09-30 14:27|
|Status||closed||Resolution||unable to reproduce|
|Platform||MTA 1.4||OS||Windows 8.1||OS Version|
|Summary||0008522: Motorbikes spin out of control when warping them to places which are streamed out|
I discovered this bug some time ago when I was doing a script to teleport motorbikes inside interiors. I used a Lua workaround with timers and the setElementFrozen function to prevent this, but I think it would be nice to fix this for consistency (this only happens with bikes).
What this 'bug' basically does is spin out motorbikes with great force in an uncontrollable manner, like the summary says. Using setVehicleVelocity and setVehicleTurnVelocity have no effect at all and motorbike's occupants fall out of the bike if they can.
|Steps To Reproduce|
Create a script which teleports a motorbike occupied by you into a interior (or far away exterior position) which is streamed out. To see this bug more clearly make sure the bike is teleported to a position which is nearby the ground.
I think that this bug is caused due to the "detachables positions" of the bike not being set correctly (they use different memory adresses). According to http://www.gtamodding.com/wiki/Memory_Addresses_(SA) , "we need to recalculate and set their locations if we warp a car from one location to another. Otherwise the car spins uncontrollably". These are the memory offsets, if you find them useful:
+1532 = BikeDetachPosAdr(0)
|Tags||No tags attached.|