When using either
SLua
or
LSL: 2025 VM
, script execution continues for a short time after a call to
llResetScript
. With the following LSL script on the Luau VM, touching the object results in both "Touched." and "Hello, Avatar!" being output to local chat. This behavior does not match the same script compiled to Mono or LSO2 which only output "Hello, Avatar!" on touch.
default
{
state_entry()
{
llSay(0, "Hello, Avatar!");
}
touch_start(integer total_number)
{
llResetScript();
llSay(0, "Touched.");
}
}
Placing a sleep of any length between the call to
llResetScript
and
llSay
will result in the expected behavior. This extended execution also affects SLua when calling
ll.ResetScript
, but it's easier to compare the behavior by just switching the compiler on LSL.