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
Problems with coding / scripting for my custom story
Darion97 Offline
Junior Member

Posts: 29
Threads: 1
Joined: Jun 2011
Reputation: 1
#4
RE: Problems with coding / scripting for my custom story

Try this:

void OnStart()
{
AddUseItemCallback("", "firstkey_1", "firstdoor_1", "Usedfirstkey_1", true);
}
void Usedfirstkey_1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("firstdoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "firstdoor_1", 0, false);
RemoveItem("firstkey_1");
AddDebugMessage("Wrong", false);
}
10-17-2011, 06:13 PM
Find


Messages In This Thread
RE: Problems with coding / scripting for my custom story - by Darion97 - 10-17-2011, 06:13 PM



Users browsing this thread: 1 Guest(s)