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
Help About Key
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#4
RE: Help About Key

Sorry i sad my first post i don't really know where to put it xD

Here you go my code .hps file same name as .map

void OnStart()

{

AddUseItemCallback("", "Key123", "Door123", "UseKeyOnDoor", true);
AddUseItemCallback("", "Study123", "Doors122", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door123", false, true);
PlaySoundAtEntity("", "unlock_door", "Door123", 0, false);
RemoveItem("Key123");
}

void UseKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Doors122", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Doors122", 0, false);
RemoveItem("Study123");
}

(This post was last modified: 03-08-2014, 12:02 PM by Straxedix.)
03-08-2014, 12:01 PM
Find


Messages In This Thread
Help About Key - by Straxedix - 03-08-2014, 11:01 AM
RE: Help About Key - by Neelke - 03-08-2014, 11:27 AM
RE: Help About Key - by PutraenusAlivius - 03-08-2014, 11:30 AM
RE: Help About Key - by Straxedix - 03-08-2014, 12:01 PM
RE: Help About Key - by Romulator - 03-08-2014, 12:14 PM
RE: Help About Key - by Straxedix - 03-08-2014, 12:39 PM
RE: Help About Key - by Romulator - 03-08-2014, 12:55 PM



Users browsing this thread: 2 Guest(s)