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??...
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
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);
}
The part below supposed to be a function? Or inside OnStart?
{
SetSwingDoorLocked("Door_3", false, true);
PlaySoundAtEntity("", "unlock_door", "Door_3", 0, false);
RemoveItem("Door_3_Key");
}
void UsedKeyOnDoor_03(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door_Of_Freedom", false, true);
PlaySoundAtEntity("", "unlock_door", "Door_Of_Freedom", 0, false);
RemoveItem("Key_Of_Freedom");
}
void UsedKeyOnDoor_Of_Freedom(string &in asItem, string &in asEntity)
{
GiveItemFromFile("lantern", "lantern.ent");
SetEntityPlayerInteractCallback("Key_Of_Freedom", "Func01", true);
}
void Func01(string &in asEntity)
{
SetEntityActive("servant_grunt_1", true);
}

05-31-2011, 02: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 Tanshaydar - 05-31-2011, 02:19 PM
RE: Can Someone Tell Me The Wrong??... - by Kyle - 06-01-2011, 11:05 AM



Users browsing this thread: 2 Guest(s)