Author Topic: how do you make a brick with preset events that display text on activeate  (Read 3404 times)

do i delete the script you gave me earlyer?

I don't know what you want, it just demonstrated how to preset events on bricks and how to preset multiple of them which displayed a text message.

Code: [Select]
%object.addEvent(true, 0, "onPickaxeHit", "Self", "Disappear", -1);
%object.addEvent(true, 0, "onPickaxeHit", "Client", "CenterPrint", "<color:00ff00><font:impact:30>+1 Emerald");
Just put those both in

Code: [Select]
function yourBrickData::onPlant(%data, %object)
{
       //here
}

I don't know what you want, it just demonstrated how to preset events on bricks and how to preset multiple of them which displayed a text message.

Code: [Select]
%object.addEvent(true, 0, "onPickaxeHit", "Self", "Disappear", -1);
%object.addEvent(true, 0, "onPickaxeHit", "Client", "CenterPrint", "<color:00ff00><font:impact:30>+1 Emerald");
Just put those both in

Code: [Select]
function yourBrickData::onPlant(%data, %object)
{
       //here
}
you deserve an emmy il post if i need more help