Nexerade Posted September 21, 2019 Posted September 21, 2019 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 ? Quote I am not silly. My english is just not really great. T_T But I'm learning!
havenphillip Posted September 21, 2019 Posted September 21, 2019 What are you trying to do, more specifically? Quote
Nexerade Posted September 22, 2019 Author Posted September 22, 2019 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 Quote I am not silly. My english is just not really great. T_T But I'm learning!
Recommended Posts
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.