Frictional Games Forum (read-only)
Use item to break window? - 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: Use item to break window? (/thread-11676.html)



Use item to break window? - FreshKorruption - 12-05-2011

In my map there is a locked door and the only way to get out is to break open the window. Can someone help me script this and give me an example. I am thinking so that when a brick collides with it, it deactivates the normal window and activates a broken one in the same spot.


RE: Use item to break window? - Obliviator27 - 12-05-2011

That's exactly how it works. Using a CollideCallback, just have the broken window activate and the regular one deactivate. Toss in some sounds and particles and you're good.



RE: Use item to break window? - FreshKorruption - 12-05-2011

(12-05-2011, 02:59 AM)Obliviator27 Wrote: That's exactly how it works. Using a CollideCallback, just have the broken window activate and the regular one deactivate. Toss in some sounds and particles and you're good.
Thanks, the only thing is that there is no active box on the entity.


RE: Use item to break window? - flamez3 - 12-05-2011

There under the Entities -> Special tabs.