Frictional Games Forum (read-only)
Is it possible to make an entity unbreakable on contact with an area? - 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: Is it possible to make an entity unbreakable on contact with an area? (/thread-16858.html)



Is it possible to make an entity unbreakable on contact with an area? - Magasztos - 07-09-2012

I wanted to make a door behind a barricade (the bar thing from Justine) unbreakable after the bar hits the area I have placed there.



Does anyone know how I can do this if it is possible at all?

Thanks in advance


RE: Is it possible to make an entity unbreakable on contact with an area? - Cruzore - 07-09-2012

by unbreakble, do you mean unbreakable for enemies? If I understand you right, you want to go through a door, which will lock itself so the enemies can't break through. If you mean that, you will have to deactivate the grunt and refrain from using sounds, particles etc.
I haven't seen a function in the engine scritps page to set a door breakable/unbreakable, but I guess you can work around that by setting the prop health to 100 once it reaches less.


RE: Is it possible to make an entity unbreakable on contact with an area? - Your Computer - 07-09-2012

You can set doors to be unbreakable in the level editor. You'll have to rely on activating and deactivating the doors from then on (though, i don't see the point in making it based on conditions).


RE: Is it possible to make an entity unbreakable on contact with an area? - Magasztos - 07-09-2012

(07-09-2012, 08:38 PM)Your Computer Wrote: You can set doors to be unbreakable in the level editor. You'll have to rely on activating and deactivating the doors from then on (though, i don't see the point in making it based on conditions).


Well I'll explain real quick so it makes more sense...

That point is kind of the point where you escape from the enemy so when you put the bar in front of the door the enemy (in this case Malo) can't break through the door anymore

But thanks this really helped me a lot guys, thanks.


-Imre