When I set up an onPlayerAction(player, action, targets) callback, how would I get the custom object info out of targets when I group select a bunch of objects with custom object info. I assume I should be able to do something along the following:
lua function onPlayerAction(player, action, targets) if action == Player.Action.Select then for i,t in ipairs(targets) broadcastToAll(t.getCustomObject().tostring()) end end
but no dice