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
Small little Issue.
A Tricky Carnie Offline
Member

Posts: 72
Threads: 15
Joined: Sep 2011
Reputation: 0
#3
RE: Small little Issue.

(10-06-2011, 11:06 PM)Your Computer Wrote: Help me help you: post your code.
This is what I have for my script:
Spoiler below!
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "key_2", "mansion_1", "KeyOnDoor", true);
AddUseItemCallback("", "key_3", "mansion_2", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("key_2");
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_2", 0, false);
RemoveItem("key_3");

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

10-06-2011, 11:18 PM
Find


Messages In This Thread
Small little Issue. - by A Tricky Carnie - 10-06-2011, 10:59 PM
RE: Small little Issue. - by Your Computer - 10-06-2011, 11:06 PM
RE: Small little Issue. - by A Tricky Carnie - 10-06-2011, 11:18 PM
RE: Small little Issue. - by Elven - 10-06-2011, 11:22 PM
RE: Small little Issue. - by Your Computer - 10-06-2011, 11:23 PM
RE: Small little Issue. - by A Tricky Carnie - 10-06-2011, 11:25 PM



Users browsing this thread: 1 Guest(s)