262 |
group[bc] = obj |
group[bc] = obj |
263 |
end |
end |
264 |
|
|
265 |
|
function add_multiactor(args, x, y) |
266 |
|
local face, group, opts = args[1], args[2], args[3] |
267 |
|
local bc = getn(group)+1 |
268 |
|
local bn = face..bc |
269 |
|
|
270 |
|
opts = opts or {} |
271 |
|
opts["name"] = bn |
272 |
|
|
273 |
|
set_actor(face, x+0.5, y+0.5, opts) |
274 |
|
local obj = enigma.GetNamedObject(bn) |
275 |
|
group[bc] = obj |
276 |
|
end |
277 |
|
|
278 |
|
function add_rubber_bands(gr1, gr2, length) |
279 |
|
for _,obj1 in gr1 do |
280 |
|
for _,obj2 in gr2 do |
281 |
|
AddRubberBand(obj1, obj2, length, 0) |
282 |
|
end |
283 |
|
end |
284 |
|
end |
285 |
|
|
286 |
function send_group_message(group, message, third) |
function send_group_message(group, message, third) |
287 |
for _,item in group do |
for _,item in group do |
288 |
enigma.SendMessage(item, message, third) |
enigma.SendMessage(item, message, third) |