Page 1 of 1

Custom data in object data (Resolved)

Posted: Sat May 28, 2016 2:15 pm
by Ranakastrasz
Is it possible to add custom entries to a object's definition, and access it via script? I am scripting power production for fusion reactors, such that it uses fuel, and since I am now trying to integrate it with bob's mod, If possibly I want to integrate the data with the object's definition instead of the configuration script.

Essentially, I want to add a few entries to the equipment data, and access it via script.

Re: Custom data in object data

Posted: Sat May 28, 2016 2:35 pm
by Rseding91
That's not possible. Data in the data.lua portion is only used if the backing C++ class is actually looking for it. All other data is discarded after the data loading phase is done.

Re: Custom data in object data

Posted: Sat May 28, 2016 2:39 pm
by Ranakastrasz
Awww. No fair.
Good to know.