Blockland Forums > Modification Help
Finding supported bricks
phflack:
so, how would i go about parenting it?
--- Code: ---package ducks
{
function fxDTSBrick::hasPathToGround()
{
if(baseplatecheckstuffhere)
return true;
return parent fxDTSBrick::hasPathToGround();
}
}activatePackage(duck);
--- End code ---
like that?
Treynolds416:
What would be the purpose of such a package?
phflack:
so if you have floating baseplates, they can be used as building platforms
jes00:
--- Quote from: phflack on May 02, 2012, 09:42:42 AM ---so, how would i go about parenting it?
--- Code: ---package ducks
{
function fxDTSBrick::hasPathToGround()
{
if(baseplatecheckstuffhere)
return true;
return parent fxDTSBrick::hasPathToGround();
}
}activatePackage(duck);
--- End code ---
like that?
--- End quote ---
Nope, parent::hasPathToGround();
Treynolds416:
--- Quote from: phflack on May 02, 2012, 10:30:59 AM ---so if you have floating baseplates, they can be used as building platforms
--- End quote ---
Sorry I'm not quite understanding. You want to be able to build on floating baseplates? Keep in mind that the function already tells if a brick is connected to a baseplate (I haven't tested it though, so I'm not 100% sure)
Edit: fill out the following blanks
"If the brick is _______, I would like the function to return true. If the brick is _______, I want the function to return as it operates normally."