Blockland Forums > Modification Help
Two questions about the spraycan.
Chrono:
In order to decide which would be the best way to do #2, what do you plan on using it for?
Destiny/Zack0Wack0:
You can also use fxDtsBrick::onColorChange(%brick,%color), I think that's the correct arguments.
If you need it for the same thing as number two then you're best off packaging the project collision so that you can retain the client, however fxDtsBrick::setColor might have a %client argument on the end too.
Reinforcements:
perhaps something like this?
--- Code: ---package OnlyOneColor{
fxDTSbrick::setColor(%brick, %color)
{
//instead of passing the functions color, just input the desired one.
parent::setColor(%brick, <placeColorIDHere>);
}
};
activatePackage(OnlyOneColor);
--- End code ---
otto-san:
--- Quote from: Chrono on August 23, 2011, 01:41:58 AM ---In order to decide which would be the best way to do #2, what do you plan on using it for?
--- End quote ---
Armageddon had this concept for a gamemode where two teams try and set the most bricks to their colour, and I just said "eh, why not?".
Chrono:
--- Quote from: otto-san on August 27, 2011, 03:47:52 PM ---Armageddon had this concept for a gamemode where two teams try and set the most bricks to their colour, and I just said "eh, why not?".
--- End quote ---
Yeah we were talking with him about that on the dueling server.
In that case, disable painting and make spray can items (for Q) which use the colorset paint images.