Not logged inOpenClonk Forum
Up Topic [Bug/Idea] Digging effect

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 Ringwaul
Yes, that would be very doable with the current script. However, you would have to make an 'if statement' for every single material that can be dug.

ie:
var matcolour;

if(GetMaterial()==Material("Earth")) matcolour=RGB(124,78,31);
if(GetMaterial()==Material("Ice")) matcolour=RGB(169,210,224);
if(GetMaterial()==Material("Sand)) matcolour=RGB(228,225,165);
etc. etc.

It would be much better to have:

if(GetMaterialVal("DigFree", etc.) matcolour=GetMaterialColour();


Also, with the first method, custom materials wouldn't show a proper colour.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill