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
Can Someone Tell Me The Wrong??...
iVicio Offline
Junior Member

Posts: 4
Threads: 1
Joined: Sep 2010
Reputation: 0
#8
RE: Can Someone Tell Me The Wrong??...

////////////////////////////
// Run first time starting map
void OnStart()
{
FadeIn(3);
SetPlayerActive(true);
ShowPlayerCrossHairIcons(true);
SetInventoryDisabled(false);
SetPlayerJumpDisabled(false);
SetPlayerCrouchDisabled(false);
AddUseItemCallback("", "Door_3_Key", "Door_3", "UsedKeyOnDoor_03", true);
AddUseItemCallback("", "Key_Of_Freedom", "Door_Of_Freedom", "UsedKeyOnDoor_Of_Freedom", true);
}

void UsedKeyOnDoor_03(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door_3", false, true);
PlaySoundAtEntity("", "unlock_door", "Door_3", 0, false);
RemoveItem("Door_3_Key");
}
void UsedKeyOnDoor_Of_Freedom(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door_Of_Freedom", false, true);
PlaySoundAtEntity("", "unlock_door", "Door_Of_Freedom", 0, false);
RemoveItem("Key_Of_Freedom");
}

(This post was last modified: 05-31-2011, 08:22 PM by iVicio.)
05-31-2011, 08:19 PM
Website Find


Messages In This Thread
Can Someone Tell Me The Wrong??... - by Jayvee17 - 05-31-2011, 01:03 PM
RE: Can Someone Tell Me The Wrong??... - by iVicio - 05-31-2011, 08:19 PM
RE: Can Someone Tell Me The Wrong??... - by Kyle - 06-01-2011, 11:05 AM



Users browsing this thread: 1 Guest(s)