![]() |
Door Explosion. - 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: Door Explosion. (/thread-16365.html) |
Door Explosion. - The Shanus - 06-21-2012 Here again.. Hopefully soon I won't have to revert to asking you lot for advice/help. You're an incredibly helpful lot, but I'd rather not waste my time, nor yours. But to the point. I'm trying to script a door, so that when the player tries to open it, it explodes outwards and knocks them back. Then, a broken door appears on the floor next to them. When the door explodes, the screen fades to white momentarily, as otherwise they would see the original door disintegrate. (I have not yet scripted it so that the player moves back with the explosion - would that require another area on the level editor?) Here is my script so far : PHP Code: void OnStart() As of now, the explosion works, the fading to white timer needs to be fixed as it does not hide the disintegration properly, but the broken door does not appear on the floor as it should. RE: Door Explosion. - MaZiCUT - 06-21-2012 There's a door explosion tutorial in the wiki. RE: Door Explosion. - The Shanus - 06-21-2012 (06-21-2012, 11:57 AM)CrazyArts Wrote: There's a door explosion tutorial in the wiki.I'm aware of that - As I said, the actual explosion part works, but the extras do not. EDIT: Never mind, I sorted it out. |