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
Request How to make several keys in on map
Khan Offline
Member

Posts: 61
Threads: 12
Joined: Aug 2011
Reputation: 0
#5
RE: How to make several keys in on map

I think I messed up :|

////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "chamberkey", "chamberdoor", "FUNCTION", true);
AddUseItemCallback("", "cellerkey", "cellerdoor", "FUNCTION", true);
AddEntityCollideCallback("Player", "script_slam", "func_slam", true, 1);
AddEntityCollideCallback("Player" , "doorbreak" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player", "doorslamtrigger1", "Func01", true, 1);
}
void FUNCTION(string &in "chamberkey", string &in "chamberdoor")
{
SetSwingDoorLocked("chamberdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("chamberkey");
SetSwingDoorClosed("doorslam", true, true);
SetSwingDoorClosed("doorslam2", true, true);
}
void FUNCTION(string &in "cellerkey", string &in "cellerdoor"
{
SetSwingDoorLocked("cellerdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("cellarkey);
}

I have like, no idea wat Im doing, so I tried wat I THOUGHT would work, it didint, now my game crashes when I try to start it ;(
08-17-2011, 01:16 PM
Find


Messages In This Thread
How to make several keys in on map - by Khan - 08-17-2011, 03:51 AM
RE: How to make several keys in on map - by Khan - 08-17-2011, 04:27 AM
RE: How to make several keys in on map - by Khan - 08-17-2011, 01:16 PM
RE: How to make several keys in on map - by Khan - 08-17-2011, 09:01 PM



Users browsing this thread: 2 Guest(s)