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
Script Help Checkpoint help
Dominic0904 Offline
Member

Posts: 63
Threads: 14
Joined: Apr 2011
Reputation: 0
#5
RE: Checkpoint help

Yeah, I add it back and then does nothing, it doesn't reset the "Lock door, spawn brute and enable checkpoint" scene.

I bolded the callback, is it because I set it to be destroyed after being triggered once? I don't think that would be the case because I changed
it to false and it didn't do anything. It still does not trigger when I walk through it the second time round (when the checkpoint loads after dying)

Quote:void ReloadCheckpoint2(string &in asName, int alCount)
{
if(HasItem("LevelEndKey_1"))
{
SetSwingDoorClosed("prison_*", true, false);
AddEntityCollideCallback("Player", "LockCellarDoor_01", "CellarChase", true, 1);
SetEntityActive("CellarBrute_01", false);
RemoveItem("LevelEndKey_1");
CreateEntityAtArea("LevelEndKey_1", "key_laboratory.ent", "RespawnCellarKey", false);
}
}


As for the doors, all my doors are named the exact same name. But it still doesn't work Sad

And the door at the beginning I was talking about. How the scene plays out is like this;

Player opens door to Maze

Steps into a trigger area which forces the player to look at the entrance door, locks that door, then after a timer has triggered it spawns a brute to patrol the area.

The player can walk a few steps forward to then trigger the checkpoint to save.

I included my .hps if what I am saying is too confusing haha. All the comments are for my Markers as this is my university project. There is a large comment that says "ALL THE SCRIPT FOR THE MAZE", that is the section which I am talking about.
https://dl.dropboxusercontent.com/u/2282...ceHall.hps

Thanks Smile
04-25-2013, 02:13 PM
Find


Messages In This Thread
Checkpoint help - by Dominic0904 - 04-24-2013, 06:01 PM
RE: Checkpoint help - by Tomato Cat - 04-24-2013, 07:16 PM
RE: Checkpoint help - by Dominic0904 - 04-24-2013, 09:01 PM
RE: Checkpoint help - by Tomato Cat - 04-24-2013, 11:08 PM
RE: Checkpoint help - by Dominic0904 - 04-25-2013, 02:13 PM
RE: Checkpoint help - by PutraenusAlivius - 04-25-2013, 02:33 PM
RE: Checkpoint help - by Dominic0904 - 04-25-2013, 03:58 PM
RE: Checkpoint help - by Tomato Cat - 04-25-2013, 02:51 PM
RE: Checkpoint help - by Tomato Cat - 04-25-2013, 04:14 PM
RE: Checkpoint help - by Dominic0904 - 04-25-2013, 04:32 PM
RE: Checkpoint help - by Tomato Cat - 04-25-2013, 05:07 PM
RE: Checkpoint help - by Dominic0904 - 04-25-2013, 06:47 PM
RE: Checkpoint help - by Tomato Cat - 04-25-2013, 08:08 PM
RE: Checkpoint help - by Dominic0904 - 04-25-2013, 09:21 PM
RE: Checkpoint help - by Dominic0904 - 04-27-2013, 06:36 PM
RE: Checkpoint help - by Tomato Cat - 04-27-2013, 07:07 PM



Users browsing this thread: 1 Guest(s)