package testp
{
function bricktestbrickData::onPlant(%this,%brick,%a)
{
%client=%brick.client;
if(%client.intesttrig)
{
%client.hastbrick = 1;
}
if(!%client.intesttrig)
{
%brick.killbrick();
%client.hastbrick = 0;
return;
}
parent::onplant(%this,%brick,%a);
}
};
activatepackage(testp);
If that doesn't work, stuff it in a function and schedule it for 75 ms after the plant process, and that should work.