The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
How to make several keys in on map

kk, so I have a key already, but, I dont know to make another key, can anyone help me here? lol. Here is wat my .hps looks like.

////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "chamberkey", "chamberdoor", "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 asItem, string &in asEntity)
{
SetSwingDoorLocked("chamberdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("chamberkey");
SetSwingDoorClosed("doorslam", true, true);
SetSwingDoorClosed("doorslam2", true, true);


As you can see, I have a key already, but I dont know how to make another, I cut off part of the script as to hide the other, surprises, in my custom story. any ideas?
08-17-2011, 03:51 AM
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: 1 Guest(s)