Created
May 24, 2012 21:25
-
-
Save warmist/2784329 to your computer and use it in GitHub Desktop.
experminetal companion list extraction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCompanions() | |
local ret={} | |
local adv=df.global.world.units.active[0] | |
for k,v in pairs(df.global.world.units.active) do | |
if v.relations.group_leader_id==adv.id then | |
table.insert(ret,v) | |
end | |
end | |
return ret | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment