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
[SOLVED]Checkpoint trouble
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#1
[SOLVED]Checkpoint trouble

Hi guys,
I wanted to make a new custom story, but I thought it would be better to get my first one working for the full 100%. So that's what I'm doing right now.
I'm trying to fix Her Games, and one of the bugs was that I didn't make any checkpoints. People could kill themselves, and then just go on their merry way without having to face any monsters. I tried to change that. I made a checkpoint, but Amnesia doesn't recognise it. But it doesn't say there's anything wrong with it either... help?

script:
void OnStart()
{
    SetEntityPlayerInteractCallback("FinalKey", "SpawnGrunts", true);
}

void SpawnGrunts(string &in asEntity)
{
    CheckPoint("", "PlayerStartArea_2", "Reset", "DHint", "Hide2");
    SetEntityActive("DoorNote", true);
    SetSwingDoorLocked("MagicDoor", false, true);
    // Loads of grunts and pathnodes//
}

void Reset (string &in asName, int alCount)
{
    SetEntityActive("DoorNote", true);
    SetSwingDoorLocked("MagicDoor", false, true);
        //Loads of grunts and patnodes//
}


Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
(This post was last modified: 12-15-2011, 03:43 PM by Karai16.)
12-14-2011, 11:17 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Checkpoint trouble

you have a space after "void Reset___(string &in asName, int alCount)"

Try removing the space.
(This post was last modified: 12-15-2011, 12:04 AM by Statyk.)
12-15-2011, 12:03 AM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#3
RE: Checkpoint trouble

Also try giving the checkpoint a name in the first argument for your CheckPoint() line in the SpawnGrunts call stack. Doesn't cause any harm to not name it, but then again I can't guarantee that won't affect the checkpoint's functionality :3

12-15-2011, 08:42 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Checkpoint trouble

Did you try to kill yourself before or after picking up or interacting with FinalKey?

Tutorials: From Noob to Pro
12-15-2011, 09:59 AM
Website Find
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#5
RE: [SOLVED]Checkpoint trouble

I appriciate all the help, but what Statyk said solved the problem!
Thanks!

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
12-15-2011, 03:45 PM
Find




Users browsing this thread: 1 Guest(s)