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!
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#12
RE: Amnesia script help!

(08-23-2013, 04:06 PM)Neelke Wrote: I think that was the problem, it seemed to be good otherwise. Also might be a good idea telling what happens when you try to start the level.

It won't be the only issue.

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Awesome_key", "Awesome_door", "ABC", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}

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

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
}

It was also missing a function definition above this line...

{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}

I assume it was meant to go into OnStart, so I moved it there Smile

(also Neelke, it's helpful if you say what it is you changed, so that people can identify the problem themselves in the future)

(This post was last modified: 08-23-2013, 04:37 PM by Adrianis.)
08-23-2013, 04:36 PM
Find


Messages In This Thread
Amnesia script help! - by theodorg - 08-21-2013, 07:03 PM
RE: Amnesia script help! - by Mudbill - 03-21-2014, 11:32 PM
RE: Amnesia script help! - by theodorg - 03-21-2014, 11:36 PM
RE: Amnesia script help! - by Vale - 03-22-2014, 12:39 AM
RE: Amnesia script help! - by theodorg - 03-22-2014, 01:23 AM
RE: Amnesia script help! - by Mudbill - 03-22-2014, 12:43 AM
RE: Amnesia script help! - by Mudbill - 03-22-2014, 02:45 AM
RE: Amnesia script help! - by theodorg - 03-22-2014, 05:16 PM
RE: Amnesia script help! - by Mudbill - 03-22-2014, 07:02 PM
RE: Amnesia script help! - by theodorg - 03-23-2014, 12:16 AM
RE: Amnesia script help! - by Romulator - 03-23-2014, 12:57 AM
RE: Amnesia script help! - by Mudbill - 03-23-2014, 12:59 AM
RE: Amnesia script help! - by Traggey - 08-21-2013, 07:42 PM
RE: Amnesia script help! - by The chaser - 08-21-2013, 07:49 PM
RE: Amnesia script help! - by theodorg - 08-21-2013, 08:23 PM
RE: Amnesia script help! - by The chaser - 08-21-2013, 10:24 PM
RE: Amnesia script help! - by theodorg - 08-22-2013, 03:38 PM
RE: Amnesia script help! - by PutraenusAlivius - 08-22-2013, 04:12 PM
RE: Amnesia script help! - by theodorg - 08-22-2013, 06:09 PM
Amnesia script help! - by theodorg - 08-23-2013, 03:49 PM
RE: Amnesia script help! - by Neelke - 08-23-2013, 04:06 PM
RE: Amnesia script help! - by Traggey - 08-23-2013, 04:17 PM
RE: Amnesia script help! - by Adrianis - 08-23-2013, 04:36 PM
RE: Amnesia script help! - by theodorg - 08-23-2013, 06:42 PM
Amnesia script help! - by theodorg - 08-23-2013, 08:14 PM
RE: Amnesia script help! - by Your Computer - 08-23-2013, 08:36 PM
RE: Amnesia script help! - by summit - 08-24-2013, 07:57 AM
Amnesia script help! - by theodorg - 08-24-2013, 10:30 AM
RE: Amnesia script help! - by The chaser - 08-24-2013, 11:00 AM
RE: Amnesia script help! - by theodorg - 08-24-2013, 11:23 AM
RE: Amnesia script help! - by PutraenusAlivius - 08-24-2013, 12:40 PM
RE: Amnesia script help! - by Traggey - 08-24-2013, 02:41 PM
Amnesia script help! - by theodorg - 03-21-2014, 07:21 PM
RE: Amnesia script help! - by Daemian - 03-21-2014, 07:29 PM
RE: Amnesia script help! - by Mudbill - 03-21-2014, 08:28 PM
RE: Amnesia script help! - by theodorg - 03-21-2014, 10:43 PM
RE: Amnesia script help! - by plutomaniac - 03-21-2014, 08:34 PM



Users browsing this thread: 1 Guest(s)