Not logged inOpenClonk Forum
Up Topic Liquid container branch

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Marky
Done. Only the option for creating a full barrel is missing yet, sort of. There are three inconventient options at the moment:


a) CreateObject(Barrel)->PutLiquid("Water", 300);
b) CreateObject(Barrel)->PutLiquid("Water", Barrel->GetLiquidContainerMaxFillLevel());
c) Water->CreateLiquid(300, CreateObject(Barrel));


First, I'd like to replace the string input with a definition input: barrel->PutLiquid(Water, 300); Second, the function PutLiquid could automatically insert as much as possible if the second parameter is nil. What do you think?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill