If I understand this request correctly, you want something like a
"lua_animation.lua" script, that would run continuously (aka, once every tenth
of as second), and probably would be used for things on some sort of cyclical
cycle.
The idea would be you'd break things down by frequency. An example to change a
bot's move target every 60 seconds:
jack_move_targets = {"Jack1", "Jack2", "Jack3", "Jack4"}
if (every_seconds(60)) then --things that happen once a minute
set_bot_destination("Jack", jack_move_target[jack_number])
jack_number = jack_number + 1;
if (table.getn(jack_move_targets) < jack_number) then
jack_number = 0;
end
end
-- This would require a lua function "every_seconds()", which would return true
once every x seconds.
This would be straightforward to add to what is currently called
"run_time_delay_events()" Might be more difficult to troubleshoot though. :-)
|