Jump to content

Lua default values always 0


beo6
 Share

Recommended Posts

I am not sure if that was already mentioned here.

 

If i define values in a Lua script like this:

Script.speed = 1--float "Speed"
Script.active = true--bool "Active"

 

and i assign this script to an entity with the Script-tab

the editor ignores the default values and starts with 0 for every value.

 

active is false by default and speed is 0.

 

That happens for every script property.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...