how to make floor break when u go to a certain 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: how to make floor break when u go to a certain area (/thread-25504.html) |
RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-22-2014 when i put the wooden plank near the sticky area it snaps into place, but now i can go through the plank like its not even there. how to fix????? RE: how to make floor break when u go to a certain area - Romulator - 06-22-2014 Add a thing called a block_box from the Entities > Technical around the area you don't want to go through. You can't see it in game, but entities can go through it, while the player cannot. RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-22-2014 fixed it! RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-22-2014 how to unlock level door with key????? RE: how to make floor break when u go to a certain area - Romulator - 06-22-2014 Follow this tutorial: https://wiki.frictionalgames.com/hpl2/tutorials/script/scripting_by_xtron_-_item_that_unlocks_a_door But use this instead of SetSwingDoorLocked: PHP Code: SetLevelDoorLocked("name_of_level_door", false); RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-22-2014 did it!! RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-22-2014 how to change the map a bit when u pull a lever like make a bookshelf fall down when u pull a lever. The Silver Key [Collapsing Cosmos] custom story has this thing RE: how to make floor break when u go to a certain area - Mudbill - 06-22-2014 If you want a bookshelf to move, you can use one of the entities that do so. One of them slide along an axis, another rotates. If you want it to move in a different fashion, you'll need to edit the entity file. On the lever entity in the Level Editor, go to the entity tab and write a function name in ConnectionStateChangeCallback. Then go to your script and add the callback for it. PHP Code: void FunctionName(string &in asEntity, int alState) RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-23-2014 I'll see i meant like the book helf falls not move sideways. its in the custom story the silver key collapsing comos RE: how to make floor break when u go to a certain area - Romulator - 06-23-2014 Is the player actually looking at the bookshelf when it falls? If not, you can make it look like it falls just by having another bookshelf in the desired position and calling the SetEntityActive() code - disabling the original and applying the fallen one. |