Frictional Games Forum (read-only)
Setting an entity unbreakable - 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: Setting an entity unbreakable (/thread-17908.html)



Setting an entity unbreakable - Melvin - 08-22-2012

I want to make a bottle (in this case a wine bottle) unbreakable. I did this by checking the unbreakable box. Now, if I throw this bottle on the ground, you hear a quick hit and then it disappears.

How can I fix the disappearance?


RE: Setting an entity unbreakable - Robby - 08-22-2012

(08-22-2012, 07:19 PM)SmokeMelvin Wrote: I want to make a bottle (in this case a wine bottle) unbreakable. I did this by checking the unbreakable box. Now, if I throw this bottle on the ground, you hear a quick hit and then it disappears.

How can I fix the disappearance?
This works on doors, but I never tested on bottles. Maybe it is supposed to be that way? I'll test it quickly.

EDIT: Tested it out. Exactly like you explained. Try using a script that makes the bottle's health like "99999". It is the "SetPropHealth" if I remember correctly.


RE: Setting an entity unbreakable - Apjjm - 08-22-2012

If you plan on having multiple bottles, the best way is just to make a custom entity.
To do this, open up the bottle's .ent file in the model editor, and use save-as to make a copy with a different name (It might be worth making a folder called Custom in your entities folder to put your custom entities in, so that you can just copy this into your CS entities folder when you are ready to release the story).
Now you are working on a copy, go to settings->user defined variables and scroll down to you see the checkbox that says "BreakActive". Uncheck this box and save your entity.

You can then navigate to your custom folder in the level editor to place your custom bottle prop which won't break.


RE: Setting an entity unbreakable - Melvin - 08-22-2012

Thanks for the reply. I've tried to set the SetPropHealth to 99999 but still... The bottle disappears after I throw it on the ground, or to the wall/ceiling.

Its like they go into the wall or something..

(08-22-2012, 08:49 PM)Apjjm Wrote: If you plan on having multiple bottles, the best way is just to make a custom entity.
To do this, open up the bottle's .ent file in the model editor, and use save-as to make a copy with a different name (It might be worth making a folder called Custom in your entities folder to put your custom entities in, so that you can just copy this into your CS entities folder when you are ready to release the story).
Now you are working on a copy, go to settings->user defined variables and scroll down to you see the checkbox that says "BreakActive". Uncheck this box and save your entity.

You can then navigate to your custom folder in the level editor to place your custom bottle prop which won't break.



Thanks man it worked! Man, didn't know it had to go so far just to not let the bottle break!