Jump to content

something like "for k,v in pairs(world.entities) do"?

Recommended Posts

Oi, how do I for through all entities (I need pivots but any help on how to "for each" will help) in my current world?

In Main.lua 

Something like

for k,v in pairs(world.entities) do




Link to post
14 hours ago, havenphillip said:

What are you trying to do, more specifically?

iterate all pivots, but I already did it the other way, I attached script to pivots that sends their pos to main.lua at start and just work with these positions from main.lua

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...