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
#2
RE: Problems with coding / scripting for my custom story

This is true:

////////////////////////////
// Run when entering map
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);
}

void OnEnter()
{
}

void OnLeave()
{
}
10-17-2011, 06:07 PM
Find


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



Users browsing this thread: 2 Guest(s)