Author Topic: Change Brick Datablock event - coverage problem  (Read 1074 times)

Okay, I was making an event that changes the bricks datablock ONLY if the new brick was of the exact size of the old, I thought I had it 100% working, but if I change, say, a 1x1 brick to a 1x1 Round brick, any faces next to, ontop or on the bottom of the bricks around it that have been hidden don't show up again, I was wondering if theres a way to recheck the bricks coverage around it without having to actually kill the brick, otherwise I get the brick death animation

Have you dumped everything on the brick and looked if there's anything that looks relevant?
Also a random guess, maybe one of the on____ functions is responsible for that, and maybe manually calling it after changing the datablock will fix it?

EDIT: I don't know. Not even killing the brick fixed it for me
« Last Edit: December 11, 2011, 11:54:43 AM by Headcrab Zombie »

Well theres definetly something that fixes it, unless its handled by code that is unreachable...

It probably is handled strictly by engine code. I believe that datablock changes not modifying the octree would be classified as a bug.

without having to actually kill the brick, otherwise I get the brick death animation
You can just delete the brick

You could search for any bricks that had faces hidden, and delete and remake them. A bit of work though, and it would play a bunch of brick planting sounds

You can just delete the brick
If you mean the brick that had the datablock changed, even that doesn't work.
Nevermind. Do that, delete the brick and remake another with the different datablock.
« Last Edit: December 12, 2011, 04:53:25 PM by Headcrab Zombie »