Message2644

Author salimiles
Recipients
Date 2013-12-04.06:16:14
Content
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. :-)
History
Date User Action Args
2013-12-04 06:16:15salimilessetmessageid: <1386137775.17.0.781927775658.issue641@freedroid.org>
2013-12-04 06:16:15salimileslinkissue641 messages
2013-12-04 06:16:14salimilescreate