UUID Comparison is... Possibly cause by the same as this bug
function test()
if ll.GetOwner() == ll.GetOwner() then
ll.Say(0,"EQUAL")
else
ll.Say(0,"NOT EQUAL")
end
end
test()
touch_start = test
Prints
NOT EQUAL
On script start, but then
EQUAL
on touch
More comprehensive script
function test()
ll.Say(0,"============================")
local own1 = ll.GetOwner()
local own2 = ll.GetOwner()
local comp = own1 == own2
if comp then
ll.Say(0, `UUID EQUAL: {comp}`)
else
ll.Say(0, `UUID NOT EQUAL: {comp}`)
end
if own1 == own2 then
ll.Say(0, `UUID EQUAL`)
else
ll.Say(0, `UUID NOT EQUAL`)
end
ll.Say(0, tostring(own1))
ll.Say(0, tostring(own2))
own1 = tostring(own1)
own2 = tostring(own2)
comp = own1 == own2
if comp then
ll.Say(0, `STRING EQUAL: {comp}`)
else
ll.Say(0, `STRING NOT EQUAL: {comp}`)
end
if own1 == own2 then
ll.Say(0, `STRING EQUAL`)
else
ll.Say(0, `STRING NOT EQUAL`)
end
ll.Say(0, own1)
ll.Say(0, own2)
ll.Say(0,"============================")
end
test()
touch_start = test