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
Key to Unlock Chest
Rokotain Offline
Member

Posts: 54
Threads: 9
Joined: Jul 2011
Reputation: 0
#7
RE: Key to Unlock Chest

(07-22-2011, 09:01 AM)Obliviator27 Wrote: Right, so I now have a new, fun problem. Odds are the problem is right in front of my eyes, but I'll let you guys see for yourselves. Basically, I have all the script for opening the chest. However, it refuses to be locked in the first place.

void OnStart()
{
FadeIn(0);
AddPlayerHealth(100);
SetPlayerLampOil(30);
SetSwingDoorLocked("MedChest", true, true);
AddUseItemCallback("", "MedChestKey", "MedChest", "UnlockMedicineChest", true);
}
void UnlockMedicineChest(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("MedChest", false, true);
RemoveItem("MedChestKey");
}

All in-game file names correspond properly.

Hello Big Grin

I'm no expert, but I think it is because you have an extra(unecessary?) true on the SetSwingDoorLocked.

I did [ b] true [ /b] around the true you could remove^^

Hope it helped, RokotainAngel
07-22-2011, 10:40 AM
Find


Messages In This Thread
Key to Unlock Chest - by Obliviator27 - 07-22-2011, 06:59 AM
RE: Key to Unlock Chest - by Ouroboros - 07-22-2011, 07:18 AM
RE: Key to Unlock Chest - by Obliviator27 - 07-22-2011, 07:30 AM
RE: Key to Unlock Chest - by Ouroboros - 07-22-2011, 07:33 AM
RE: Key to Unlock Chest - by Obliviator27 - 07-22-2011, 09:01 AM
RE: Key to Unlock Chest - by Rokotain - 07-22-2011, 10:40 AM
RE: Key to Unlock Chest - by WatzUpzPeepz - 07-22-2011, 01:35 PM
RE: Key to Unlock Chest - by ferryadams11 - 07-22-2011, 09:31 AM
RE: Key to Unlock Chest - by Poppuhik42 - 07-22-2011, 01:27 PM
RE: Key to Unlock Chest - by Ouroboros - 07-22-2011, 02:00 PM
RE: Key to Unlock Chest - by Obliviator27 - 07-22-2011, 08:36 PM



Users browsing this thread: 1 Guest(s)