So I've created a brick type, OilSource with it's code below:
datablock fxDtsBrickData(brick8x8Data)
{
category = "Bricks";
subcategory = "Oil Mod";
uiName = "Oil Source";
specialBrickType = "";
adminOnly = 1;
};
And I want to make it so when you click it (activate) it will automatically, lets say, make a message appear on your screen. (center message) I didn't really want to do this with simply adding events in though, I wanted to do it more like the employment/banking bricks in the RP mod. And yes, I tried to look though the code but when I did nothing I tried to use there worked. For example:
datablock fxDtsBrickData(PipeDat : brick2x4Data)
{
category = "Bricks";
subcategory = "Oil Mod";
uiName = "Pipeline";
specialBrickType = "";
adminOnly = 0;
};
function PipeDat::Activate(%datablock, %client)
{
messageClient(%client, '', "\c3Employment Office");
messageClient(%client, '', "\c31. \c6Job list");
messageClient(%client, '', "\c32. \c6Specify job");
messageClient(%client, '', "\c33. \c6Get job");
return true;
}
Doesn't do anything when I click a "Pipe" brick.