Author Topic: Problem with new fxdtsbrick  (Read 395 times)

Well, I have created a farming mod, and for all I know it works like a charm. For the most part. The problem is when I  place a seed, it creates a new fxdtsbrick, so when I try to place it on someone else's bricks it continues to place itself rather than being canceled by not having trust.
Here's a snip of code:
Code: [Select]
package CottonPackage
{
function fxDTSBrick::onPlant(%brick)
{
parent::onPlant(%brick);
if(%brick.getDatablock().isCottonSeed)
{
%SeedPos = %brick.position;
if(isObject(%brick))
{
%brick.schedule(5000, "Grow", %SeedPos);
%brick.schedule(5000, "delete");
}
}
}
}
};

So when you place it, it verifies if its a seed or not, then calls the grow function which makes it... grow. Is there a way to verify if what your placing your seed on has your trust or not?