Frictional Games Forum (read-only)

Full Version: do i need a script if i want to lock a chest with padlocks ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
the title is my question Big Grin




it works for me
oh :O sorry :S and thankss!!
what must i do ?? can you tell me step for step ? :S
its rlly easy
Use SetLeverStuckState, because the chest is not considered a door, but rather a lever with an on and off state (open and closed).

PHP Code:
SetLeverStuckState(stringasNameint alStatebool abEffects); 
it also works with a piano
oh thanks... but now i got expected ) Sad

PHP Code:
void OnStart()
{
SetLeverStuckState(stringasNameint alStatebool abEffects); 
}


void MoveWall(string &in asEntityint alState
{
    if (
alState == -1)
    {
        
SetMoveObjectState("MoveWall"1);
        
SetLeverStuckState("secretlever", -1false);
        
PlaySoundAtEntity("""quest_completed.snt""MoveWall"0false);
    }

u hav to fill in the (string& asName, int alState, bool abEffects);
i forgot this one... what must i type ? my big chest name is Big and my small chest is small ...




watch this vid if u dont no
Pages: 1 2