Posted: Sat Jan 09, 2021 5:14 pm Post subject: Multiply a float value?
Hi, i've searched and read a couple of posts on this matter, but i always found them too complex or somehow they didn't apply to this case.
I can set the values in auto assembler like this:
Code:
[ENABLE]
[VehicleMain]+8C4:
dd (float)0.9
{$lua}
if syntaxcheck then return end
local t=createTimer()
t.Interval=100
t.OnTimer=function()
memrec.Active=false
t.destroy()
end
[DISABLE]
This sets the value in that offset but my aim is to be able to, for example, multiply the original value for a value set by me, and write that in.
What would be the better approach to this?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum