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
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Checkpoints and autosave help

Create a script area at the place where the Player would be respawning and name it "ScriptAreaMonsterRespawn" without the quotation marks.
After that, put an in-active enemy at the place of the original one called "EnemyInActive" without the quoatation marks.

Now, copy paste the following script.
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""ScriptAreaMonsterRespawn""MonsterRespawn"true0);
}

void MonsterRespawn(string &in asParentstring &in asChildint alState);
{
SetEntityActive("EnemyInActive"true);


And I do not know about the AutoSave thing. Just put in on the void OnEnter() part.
Just put that s**t in. I'm just following FG's scripts.

"Veni, vidi, vici."
"I came, I saw, I conquered."
05-02-2013, 12:57 PM
Find


Messages In This Thread
Checkpoints and autosave help - by serbusfish - 05-02-2013, 12:50 PM
RE: Checkpoints and autosave help - by PutraenusAlivius - 05-02-2013, 12:57 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)