Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED]Checkpoint trouble
Author Message
Karai16 Offline
Member

Posts: 164
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,600
Joined: Sep 2011
Reputation: 198
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
palistov Offline
Posting Freak

Posts: 1,175
Joined: Mar 2011
Reputation: 56
Post: #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 all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,234
Joined: Jul 2011
Reputation: 215
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Karai16 Offline
Member

Posts: 164
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)