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 (Key to door)
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: Script help (Key to door)

void OnStart()
{
AddUseItemCallback("", "nameofkey", "nameofdoor", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("nameofdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("nameofkey");
}

(This post was last modified: 01-30-2012, 10:47 AM by flamez3.)
01-30-2012, 10:47 AM
Find


Messages In This Thread
Script help (Key to door) - by QysteiN - 01-30-2012, 10:27 AM
RE: Script help (Key to door) - by i3670 - 01-30-2012, 10:43 AM
RE: Script help (Key to door) - by flamez3 - 01-30-2012, 10:47 AM
RE: Script help (Key to door) - by QysteiN - 01-30-2012, 11:11 AM
RE: Script help (Key to door) - by Saren - 01-30-2012, 11:14 AM
RE: Script help (Key to door) - by flamez3 - 01-30-2012, 11:15 AM
RE: Script help (Key to door) - by Saren - 01-30-2012, 11:18 AM
RE: Script help (Key to door) - by QysteiN - 01-30-2012, 12:07 PM
RE: Script help (Key to door) - by flamez3 - 01-30-2012, 12:08 PM



Users browsing this thread: 1 Guest(s)