function fxDtsBrick::onPlant(%data,%brick)
{
if(%brick.getDatablock().ChosenResource $= "Wood")
{
%brick.setColor("50");
MessageAll('',"An Lumbermill has been constructed!");
}
if(%brick.getDatablock().ChosenResource $= "Iron")
{
%brick.setColor("48");
MessageAll('',"An Iron Mine has been constructed!");
}
}
This is where I got up to I'm just trying to increment a client variable from there now.
Would i need to find the client by using something like FindClientByID?