Author Topic: Finding if ghost brick is floating or overlapping  (Read 511 times)

How would I find if %player.tempBrick is floating or overlapping a brick?

I think there's a function to check for an error when trying to place a brick, you could use that.
No I don't mean onPlant.

I'm pretty sure plant is the only way that actually returns an error. You don't have to plant the tempbrick, you can do something like %b = new fxDTSBrick() { datablock = %temp.getDatablock(); position = %temp.getPosition(); rotation = getWords(%temp.getTransform(),3,6); }; %err = %b.plant(); %b.delete();
« Last Edit: August 20, 2012, 08:54:05 PM by TripNick »

I'm pretty sure plant is the only way that actually returns an error. You don't have to plant the tempbrick, you can do something like %b = new fxDTSBrick() { %datablock = %temp.getDatablock(); %position = %temp.getPosition(); }; %err = %b.plant(); %b.delete();
you forgot angleid and rotation

bricks are not square so its important

you forgot angleid and rotation

bricks are not square so its important
Keywords hilighted

My response

rotation = "0 0 0 0";

you forgot angleid and rotation

bricks are not square so its important
AngleID isn't necessary for this particular brick, but you're right I skipped rotation.