Frictional Games Forum (read-only)

Full Version: how to make floor break when u go to a certain area
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13
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?????
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.
fixed it!
how to unlock level door with key?????
Follow this tutorial: https://wiki.frictionalgames.com/hpl2/tu...cks_a_door

But use this instead of SetSwingDoorLocked:
PHP Code:
SetLevelDoorLocked("name_of_level_door"false); 
did it!!
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
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 asEntityint alState)
{
    
SetMoveObjectState("bookshelf"1);

I'll see

i meant like the book helf falls not move sideways. its in the custom story the silver key collapsing comos
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.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13