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
Script Help Locking Doors ,Give Item ,and Lights
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#19
RE: Locking Doors ,Give Item ,and Lights

I think i know why it doesn't work...

Give me some minutes

*TESTING*

EDIT:

Ok it works to me with this function:

void UseKeyOnDoor01(string &in asItem, string &in asEntity)
{

if(GetSwingDoorLocked("mansion_1") == true)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "lock_door.snt", "mansion_1", 0, true);
return;
}

if(GetSwingDoorLocked("mansion_1") == false)
{
SetSwingDoorLocked("mansion_1", true, true);
PlaySoundAtEntity("", "lock_door.snt", "mansion_1", 0, true);
return;
}
}

Trying is the first step to success.
(This post was last modified: 01-23-2013, 01:10 PM by FlawlessHappiness.)
01-23-2013, 01:08 PM
Find


Messages In This Thread
RE: Locking Doors ,Give Item ,and Lights - by FlawlessHappiness - 01-23-2013, 01:08 PM



Users browsing this thread: 1 Guest(s)