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
custom story help?
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#8
RE: custom story help?

void OnStart()
{
AutoSave();
AddUseItemCallback("", "hubkey1", "hubdoor1", "hubunlock", true);
}
void hubunlock(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("hubdoor1", false, true);
PlaySoundAtEntity("", "unlock_door", "hubdoor1", 0, false);
RemoveItem("hubkey1");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Try dat

06-18-2012, 11:57 AM
Find


Messages In This Thread
custom story help? - by peepeeboynotreal - 06-18-2012, 07:55 AM
RE: custom story help? - by Dutton - 06-18-2012, 07:59 AM
RE: custom story help? - by peepeeboynotreal - 06-18-2012, 08:27 AM
RE: custom story help? - by Dutton - 06-18-2012, 08:44 AM
RE: custom story help? - by peepeeboynotreal - 06-18-2012, 08:50 AM
RE: custom story help? - by Dutton - 06-18-2012, 08:54 AM
RE: custom story help? - by peepeeboynotreal - 06-18-2012, 09:25 AM
RE: custom story help? - by Datguy5 - 06-18-2012, 11:57 AM



Users browsing this thread: 1 Guest(s)