Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia editor - Help with scripting // Keys??
Rowzter Offline
Junior Member

Posts: 44
Threads: 12
Joined: Oct 2012
Reputation: 3
#2
RE: Amnesia editor - Help with scripting // Keys??

in your maps folder where i think u saved ur map is called maybe "Storage.map", Then there should be a hps file to it. Create a new textfile and name it "Storage.hps"

In this hps file you should add this:

void OnStart()



{
AddUseItemCallback("", "NAMEOFKEY", "NAMEOFDOOR", "NAMEOFFUNCTION", true);
}



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

I hope i wrote it understandable. Smile
12-05-2012, 08:38 PM
Find


Messages In This Thread
RE: Amnesia editor - Help with scripting // Keys?? - by Rowzter - 12-05-2012, 08:38 PM



Users browsing this thread: 1 Guest(s)