The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
General
/
How to set type in lua
«
1
2
»
How to set type in lua
MasterMind555
6th Jun 2011
Member
0
Permalink
@cracker64
(View Post)
Is it just me or it's not mentionned that we need quotes in the wiki? Because I didn't knew that before now...
Pilihp64
6th Jun 2011
Developer
0
Permalink
Read, I said next version (probably 49.5)
I added a bit about needing quotes for words to the wiki
Teking
6th Jun 2011
Member
0
Permalink
It still non-working for me
MasterMind555
6th Jun 2011
Member
0
Permalink
@Teking
(View Post)
https://powdertoy.co.uk/Wiki.html?id=lua
Teking
6th Jun 2011
Member
0
Permalink
i said that i dont understand it!!
MasterMind555
6th Jun 2011
Member
0
Permalink
@Teking
(View Post)
-.-
LISTEN
To set something in the Lua Console you Write:
tpt.set_property("property", "value", "target")
For example, you want to make the temperature of the water to 0K, you would write :
tpt.set_property("temp","0","watr")
Most Useful Properties:
temp
life
type
Teking
6th Jun 2011
Member
0
Permalink
Yes, but for me dont works i dont know why -____-
MasterMind555
6th Jun 2011
Member
0
Permalink
@Teking
(View Post)
Are you in the Latest Beta version?
Do you write proprety instead of property?
Do you say like water instead of watr?
Can you give me what error reports it gives?
DCBloodHound
6th Jun 2011
Member
0
Permalink
only 1 ' instead of 2 '
Teking
6th Jun 2011
Member
0
Permalink
@MasterMind555
(View Post)
Does not give any error
«
1
2
»