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
New Key Problems
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: New Key Problems

void OnStart()
{
AddUseItemCallback("", "studykey_1", "mansion_2", "OPEN", true);AddUseItemCallback("", "dungeonkey_2", "mansion_3", "OPEN_somethingelse", true);
}

void OPEN(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_2", 0, false);
RemoveItem("studykey_1");
}

void StudyDoorLocked(string &in entity)


{
if(GetSwingDoorLocked("mansion_2") == true)
{

SetMessage("Messages", "studyroomlocked", 0);

}
}

void OPEN(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
RemoveItem("dungeonkey_2");
}

void DungeonDoorLocked(string &in entity)


{
if(GetSwingDoorLocked("mansion_") == true)
{

SetMessage("Messages", "dungeondoorlocked", 0);

}
}


No, you don't need a new .hps file for every single script. Wrong section to post this too.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-02-2012, 02:02 AM
Find


Messages In This Thread
New Key Problems - by ryan1431 - 12-02-2012, 01:52 AM
RE: New Key Problems - by The chaser - 12-02-2012, 02:02 AM
RE: New Key Problems - by ryan1431 - 12-02-2012, 02:07 AM
RE: New Key Problems - by The chaser - 12-02-2012, 11:23 AM
RE: New Key Problems - by Your Computer - 12-02-2012, 11:17 PM
RE: New Key Problems - by The chaser - 12-03-2012, 09:29 AM



Users browsing this thread: 1 Guest(s)