View Issue Details

IDProjectCategoryView StatusLast Update
0003727Multi Theft Auto : San AndreasScriptingpublic2008-09-05 11:26
ReporterArcAssigned Tolil_Toady 
PrioritynormalSeveritymajorReproducibilityrandom
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version1.0 
Summary0003727: Serverside moveObject sets a seemingly random rotation when called on an object that is moving/has moved before
Description

See attached example code. Clientside is fine.

Additional Information

local hays = {}

addEventHandler('onResourceStart', getResourceRootElement(getThisResource()),
function()
for i=1,50 do
hays[i] = createObject(3374, i*4, 0, 4)
end
setTimer(move, 1000, 1)
setTimer(move, 5000, 1)
end
)

function move()
for i,hay in ipairs(hays) do
local x, y, z = getElementPosition(hay)
moveObject(hay, math.random(3000, 7000), x, y + 10, z + 1, 0, 0, 0)
end
end

TagsNo tags attached.

Relationships

parent of 0003734 resolvedlil_Toady Serverside getObjectRotation() returns wrong values for moving objects 
child of 0003255 closed Priority Issues 

Activities

ryden

2008-08-27 13:52

manager   ~~0007992

Start hay, wait a minute, reconnect and have fun.

ryden

2008-08-31 07:21

manager   ~~0007998

Last edited: 2008-08-31 13:33

It's partially fixed now. When you connect you see the objects with a wrong rotation, but then they rotate to get the correct one (you can clearly see the correction).

Issue History

Date Modified Username Field Change