The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Please with Scripting
abe.lloyd Offline
Junior Member

Posts: 15
Threads: 2
Joined: Mar 2012
Reputation: 0
#1
Help Please with Scripting

Hello , i have recently purchased Amnesia and love it. I want to make a map but i have tried numurous times and i cant get the following scripts to work
////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("OpenLockedDoor", "key_1", "level_celler_1", "UnlockLevelDoor", true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
void UnlockLevelDoor(string &in item,string &in entity)
{
SetLevelDoorLocked(Entity, false);
// RemoveItem(Item);
}
and
<LANGUAGE>
<CATEGORY Name="TutorialStory">
<Entry Name="Description">nothing yet</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_studyKey_1">key for unlocking celler</Entry>
<Entry Name="ItemName_studyKey_1">Celler key</Entry>
</CATEGORY>
</LANGUAGE>
I would like to have a basic tutorial that works for me or a skype helper. All the tutorials dont work for me and i have tried lots.
Thank you
abelloyd
03-31-2012, 12:00 PM
Find


Messages In This Thread
Help Please with Scripting - by abe.lloyd - 03-31-2012, 12:00 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 12:01 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 01:58 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 03:41 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 03:48 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:03 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 04:29 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:36 PM
RE: Help Please with Scripting - by flamez3 - 03-31-2012, 04:36 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 04:38 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:43 PM
RE: Help Please with Scripting - by flamez3 - 03-31-2012, 04:44 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:59 PM
RE: Help Please with Scripting - by flamez3 - 03-31-2012, 05:07 PM
RE: Help Please with Scripting - by abe.lloyd - 04-01-2012, 10:16 AM
RE: Help Please with Scripting - by flamez3 - 04-01-2012, 10:25 AM
RE: Help Please with Scripting - by abe.lloyd - 04-01-2012, 10:39 AM



Users browsing this thread: 1 Guest(s)