Jump to content

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


Nexerade
 Share

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

     print("x,y,z:"..v.x,v.y,v.z)

end

?

I am not silly. My english is just not really great. T_T

But I'm learning! :D

Link to comment
Share on other sites

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

I am not silly. My english is just not really great. T_T

But I'm learning! :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

 Share

×
×
  • Create New...