Frictional Games Forum (read-only)

Full Version: Ladder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,
I want to make a ladder puzzle, like in Justine.
(You know, with the ladder piece)
My script is wrong, but I don't know why, because it's not working...
Please take a look...

void OnStart ()
{
AddUseItemCallback("LadderOnHole", "ladder_piece", "AreaAttachLadder", "UseLadderOnArea", true);
}

// Using ladder item on the hole, activates a ladder entity and ladder area
void UseLadderOnArea(string &in asItem, string &in asEntity)
{
RemoveItem("ladder_piece");

SetPropActiveAndFade("static_ladder", true, 0.5f);
SetEntityActive("LadderArea", true);
PlaySoundAtEntity("attach", "05_attach_ladder", "static_ladder", 0.0f, false);
}
Everything looks correct. There are 2 things to debug your problem.

1. Check all the names of the entities you are using. Maybe you accidently wrote something wrong.

2. Go to your /maps folder and delete the .map cache. It can prevent changes from happening in your ingame map.
Thank you, I checked it, everything's correct and I don't have a .cache file... :/
What's the error message?
There's no error message
The game starts, just the ladder doesn't work....
You mean the climbing part? You'll need an ladder area for that.