function player::canPlantTempBrick(%player)
{
if(!isObject(%temp = %player.tempBrick))
{
return;
}
%brick = new fxDTSBrick()
{
datablock = %temp.getDatablock();
position = %temp.getPosition();
rotation = getWords(%temp.getTransform(), 3, 6);
};
%error = %brick.plant();
%brick.delete();
if(!%error)
{
return true;
}
return false;
}