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
Need help with keys
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: Need help with keys

Looks like you just need to clean it up a bit and add a few " "
//===========================================
// This runs when the map first starts
void OnStart()
{
AddUseItemCallback("", "CellKey", "Prison_door_1", "UseKeyonDoor",true);
}

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

Added spaces after the commas and quotes around CellKey and Prison_door_1

(This post was last modified: 04-20-2011, 02:26 AM by Russ Money.)
04-20-2011, 02:25 AM
Find


Messages In This Thread
Need help with keys - by D3AD UPR1S1NG - 04-20-2011, 02:08 AM
RE: Need help with keys - by Russ Money - 04-20-2011, 02:25 AM
RE: Need help with keys - by D3AD UPR1S1NG - 04-20-2011, 02:30 AM
RE: Need help with keys - by Russ Money - 04-20-2011, 02:58 AM
RE: Need help with keys - by D3AD UPR1S1NG - 04-20-2011, 02:59 AM



Users browsing this thread: 1 Guest(s)