Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
do i need a script if i want to lock a chest with padlocks ?
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#1
do i need a script if i want to lock a chest with padlocks ?

the title is my question Big Grin
07-20-2014, 06:59 PM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#2
RE: do i need a script if i want to lock a chest with padlocks ?





it works for me

07-20-2014, 10:00 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#3
RE: do i need a script if i want to lock a chest with padlocks ?

oh :O sorry :S and thankss!!
what must i do ?? can you tell me step for step ? :S
07-20-2014, 10:06 PM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#4
RE: do i need a script if i want to lock a chest with padlocks ?

its rlly easy

07-20-2014, 10:43 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#5
RE: do i need a script if i want to lock a chest with padlocks ?

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: (Select All)
SetLeverStuckState(stringasNameint alStatebool abEffects); 

07-21-2014, 03:52 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#6
RE: do i need a script if i want to lock a chest with padlocks ?

it also works with a piano

07-21-2014, 05:33 AM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#7
RE: do i need a script if i want to lock a chest with padlocks ?

oh thanks... but now i got expected ) Sad

PHP Code: (Select All)
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);
    }

07-21-2014, 08:50 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#8
RE: do i need a script if i want to lock a chest with padlocks ?

u hav to fill in the (string& asName, int alState, bool abEffects);

07-21-2014, 08:55 AM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#9
RE: do i need a script if i want to lock a chest with padlocks ?

i forgot this one... what must i type ? my big chest name is Big and my small chest is small ...
(This post was last modified: 07-21-2014, 09:01 AM by Amnesiaplayer.)
07-21-2014, 08:59 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#10
RE: do i need a script if i want to lock a chest with padlocks ?





watch this vid if u dont no

07-21-2014, 09:04 AM
Find




Users browsing this thread: 1 Guest(s)