Page 1 of 1

Is it possible to change fluid_box during gameplay?

Posted: Tue Apr 16, 2024 11:13 pm
by dragon-architect
I've just had an idea for a potential mod that would require changing the base_level of a given entity's fluid_box during gameplay.

Does anybody know if this is possible to do?

Re: Is it possible to change fluid_box during gameplay?

Posted: Wed Apr 17, 2024 1:53 am
by Pi-C
dragon-architect wrote:
Tue Apr 16, 2024 11:13 pm
I've just had an idea for a potential mod that would require changing the base_level of a given entity's fluid_box during gameplay.

Does anybody know if this is possible to do?
The fluid_box is hard-wired into the prototype and can only be changed in the data stage. However, there may be a way to work around this problem: Define several look-alike prototypes that differ only in their fluid_box and swap the entities as needed in the control stage. I've used this technique in the Water Turret mod, so that the same turret (from the perspective of players) can shoot either water or steam, depending on the contents of the connected pipes: Image

Re: Is it possible to change fluid_box during gameplay?

Posted: Fri Apr 19, 2024 10:49 pm
by dragon-architect
Hmmm, alright then. I'll have to figure out how to do that. 🤔