LoG2 equivalent of LoG1 allEntities(level)?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
micles
Posts: 2
Joined: Wed Oct 22, 2014 9:18 pm

LoG2 equivalent of LoG1 allEntities(level)?

Post 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
User avatar
SnowyOwl47
Posts: 148
Joined: Fri Sep 12, 2014 10:41 pm

Re: LoG2 equivalent of LoG1 allEntities(level)?

Post 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
Post Reply