The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
The Powder Toy/Lua scripting
/
Oddity elements!
«
1
»
Oddity elements!
BlueAmulet
15th Feb 2012
Member
1
Permalink
Deleted
Edited once by BlueAmulet. Last:
14th April
MasterMind555
15th Feb 2012
Member
0
Permalink
@gamax92
(View Post)
There is probably a much simpler way to do this. Isn't there a way to access elements using an array ? Like tpt.el[5].weight ?
mniip
15th Feb 2012
Developer
0
Permalink
@MasterMind555
(View Post)
nope, but you can
for i=1,142 do
tpt.el[tpt.element(i)].weight=...
end
«
1
»