Page 1 of 1

LoG2 equivalent of LoG1 allEntities(level)?

Posted: Thu Oct 23, 2014 5:13 am
by micles
I want to iterate over entities (just simple messing around in the console), dunno how. Am i doing something wrong, or has the function name changed?

Code: Select all

for entity in allEntities(level) do
      print(entity.name)
end

Re: LoG2 equivalent of LoG1 allEntities(level)?

Posted: Thu Oct 23, 2014 5:50 am
by SnowyOwl47
micles wrote:I want to iterate over entities (just simple messing around in the console), dunno how. Am i doing something wrong, or has the function name changed?

Code: Select all

for entity in allEntities(level) do
      print(entity.name)
end
Simply go here it should still work:

viewtopic.php?f=14&t=5672