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
Script Help Checkpoints and autosave help
serbusfish Offline
Member

Posts: 211
Threads: 75
Joined: Aug 2012
Reputation: 0
#1
Checkpoints and autosave help

First of all i'm wanting to put a checkpoint in place so that if a monster kills you you respawn close by but the monster is gone. I know this is like the default thing that happens but I cant figure it out, I have a player start area in place, im just not sure what to do with this:

void CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

Do I put this in the part of the script that spawns the monster? And what would I put for the 'string& asCallback' bit?

-------------------------------------------------------------------

Second question, I was just wondering how the 'void AutoSave();' command works, do I put this at the beginning of a map or the end? And if say, items have been collected, if the player exits and reloads will the game have saved this or do I need to put auto save commands in the scripts after item pickups? And do I need to assign start areas or will it just start at the place you exit at?

05-02-2013, 12:50 PM
Find


Messages In This Thread
Checkpoints and autosave help - by serbusfish - 05-02-2013, 12:50 PM
RE: Checkpoints and autosave help - by The chaser - 05-02-2013, 01:53 PM
RE: Checkpoints and autosave help - by serbusfish - 05-02-2013, 03:04 PM
RE: Checkpoints and autosave help - by serbusfish - 05-02-2013, 05:37 PM
RE: Checkpoints and autosave help - by The chaser - 05-03-2013, 01:18 PM



Users browsing this thread: 1 Guest(s)