Jump to content

Lua default values always 0

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.

Share this post

Link to post

This is broken since the latest update. This is probably because an object can now have only one script instead of multiple scripts. This worked on previous versions since their were bug fixes for it.

Share this post

Link to post
This topic is now closed to further replies.
  • Create New...