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
Amnesia script help
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Amnesia script help

void OnStart()
{
AddUseItemCallback("", "Key_1", "Door", "DoubleKeyOnDoor", false);
AddUseItemCallback("", "Key_2", "Door", "DoubleKeyOnDoor", false);
}

void DoubleKeyOnDoor(string &in asItem, string &in asEntity)
{
AddLocalVarInt("DoubleDoorVar", 1);
RemoveItem(asItem);

if(GetLocalVarInt("DoubleDoorVar") == 2)
{
SetSwingDoorLocked("Door", false, true);
}
}


There might be mistakes in this script, since I didn't test it. But it should work.

Trying is the first step to success.
(This post was last modified: 08-29-2014, 04:50 PM by FlawlessHappiness.)
08-29-2014, 04:48 PM
Find


Messages In This Thread
Amnesia script help - by theodorg - 08-29-2014, 04:29 PM
RE: Amnesia script help - by PutraenusAlivius - 08-29-2014, 04:34 PM
RE: Amnesia script help - by theodorg - 08-29-2014, 04:44 PM
RE: Amnesia script help - by FlawlessHappiness - 08-29-2014, 04:48 PM
RE: Amnesia script help - by theodorg - 08-29-2014, 05:13 PM
RE: Amnesia script help - by FlawlessHappiness - 08-29-2014, 05:20 PM
RE: Amnesia script help - by Neelke - 08-29-2014, 05:20 PM



Users browsing this thread: 1 Guest(s)