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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is the key to door script not working to me?
Wolfpa Offline
Junior Member

Posts: 14
Threads: 3
Joined: Aug 2013
Reputation: 0
#16
RE: Why is the key to door script not working to me?

Nevermind guys I found a working script.

:


void OnStart()
{
AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}


Still don't know what was wrong with that other one but still great! Big Grin
08-07-2013, 07:19 AM
Find


Messages In This Thread
RE: Why is the key to door script not working to me? - by Wolfpa - 08-07-2013, 07:19 AM



Users browsing this thread: 1 Guest(s)