View Issue Details

IDProjectCategoryView StatusLast Update
0009292Multi Theft Auto : San AndreasScriptingpublic2016-07-12 09:47
ReporterSkulerisAssigned ToTalidan 
PrioritylowSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Product Version 
Target Version1.5.3Fixed in Version1.5.3 
Summary0009292: setObjectScale for seperate axis does not save
Description

When any of xyz axis is equal to 1, for example: 0.5, 1, 0.7; 1, 0.9, 1.3 .. etc, when the object is streamed in, it's scale is reset to default.

Steps To Reproduce

local tab = {
{1, 0.5, 0.75},
{0.8, 1, 1.4},
{1.2, 0.6, 1},
}

local x, y, z = getElementPosition(localPlayer)
obj = createObject(2232, x,y+2,z)
local rTab = tab[math.random(1,#tab)]
setObjectScale(obj,unpack(rTab))
outputChatBox("create.setObjScale: "..rTab[1]..", "..rTab[2]..", "..rTab[3])
local x,y,z = getObjectScale(obj)
outputChatBox("create.getObjScale: "..x..", "..y..", "..z)

function asd()
local x,y,z = getObjectScale(obj)
outputChatBox("before.setObjScale: "..x..", "..y..", "..z)
setObjectScale(obj,unpack(tab[math.random(1,#tab)]))
local x,y,z = getObjectScale(obj)
outputChatBox("after.setObjScale: "..x..", "..y..", "..z)
end
addCommandHandler("asd",asd)

Additional Information

It can be 100% fixed scriptwise, by setting object scale inside 'onClientElementStreamIn' event.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change