Frictional Games Forum (read-only)
Breaking floor - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Breaking floor (/thread-16207.html)



Breaking floor - bartimeus - 06-16-2012

Hi
I wonder if it's possible to make a path that the player uses and which broke when he step on it. In my case I'm trying to make a bridge made of planks, the problem is that I can't walk on it...
So, is there a way to make the player able to walk on the planks, and if it's possible, how can I break them?

Thanks for your answers Smile


RE: Breaking floor - SilentHideButFine - 06-17-2012

(06-16-2012, 05:41 PM)bartimeus Wrote: Hi
I wonder if it's possible to make a path that the player uses and which broke when he step on it. In my case I'm trying to make a bridge made of planks, the problem is that I can't walk on it...
So, is there a way to make the player able to walk on the planks, and if it's possible, how can I break them?

Thanks for your answers Smile
Ofc you can , add my skype and i help you out!!
@wowhasse1


RE: Breaking floor - bartimeus - 06-17-2012

(06-17-2012, 02:12 AM)SilentHideButFine Wrote:
(06-16-2012, 05:41 PM)bartimeus Wrote: Hi
I wonder if it's possible to make a path that the player uses and which broke when he step on it. In my case I'm trying to make a bridge made of planks, the problem is that I can't walk on it...
So, is there a way to make the player able to walk on the planks, and if it's possible, how can I break them?

Thanks for your answers Smile
Ofc you can , add my skype and i help you out!!
@wowhasse1
Thanks, but I prefer a written answer...


RE: Breaking floor - Obliviator27 - 06-17-2012

You should be able to use wooden_boards_block to make the bridge. You'll want to also put inactive wooden_boards_block_broken in the same spot. All you need to do then is have a collide callback set up (AddEntityCollideCallback) with a few areas. Have these callbacks trigger SetEntityActive(Set the regular boards inactive and the broken ones active) You can use CreateParticleSystemAtEntity and PlaySoundAtEntity to make it fancier if you so choose.

If you simply cannot walk on the boards properly, just put a multiple block boxes down and set those inactive with the boards as they break.


RE: Breaking floor - bartimeus - 06-17-2012

Thanks Smile I haven't think of adding some block boxes!!! It help me alot!