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
#8
RE: Checkpoints and autosave help

(05-03-2013, 01:18 PM)The chaser Wrote: Yes, just:

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""ScriptAreaMonsterRespawn""MonsterRespawn"true0);
}

void MonsterRespawn(string &in asParentstring &in asChildint alState)
{
SetEntityActive("EnemyInActive"true);
CheckPoint ("Checkpoint_1""PlayerStartArea_checkpoint""CheckDaPoint""DeathHintCategory""DeathHintEntry");  ///Put the PlayerStartArea_checkpoint right where the script area is.


void CheckDaPoint (string &in asNameint alCount)
{
SetEntityActive("Musicarea"true);
AddEntityCollideCallback("Player, "Musicarea", "PlayMusische", true, 1);
}

void Musische (string &in asParent, string &in asChild, int alState)
{
PlayMusic("
Yourmusic.ogg", true, 1, 1, 1, false);

Just a little bit of a fix from the chaser's script.
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""ScriptAreaMonsterRespawn""MonsterRespawn"true0);
}

void MonsterRespawn(string &in asParentstring &in asChildint alState)
{
SetEntityActive("EnemyInActive"true);
CheckPoint ("Checkpoint_1""PlayerStartArea_checkpoint""CheckDaPoint""DeathHintCategory""DeathHintEntry");  ///Put the PlayerStartArea_checkpoint right where the script area is.


void CheckDaPoint(string &in asNameint alCount)
{
SetEntityActive("Musicarea"true);
AddEntityCollideCallback("Player""Musicarea""PlayMusic"true1);
}

void PlayMusic(string &in asParentstring &in asChildint alState)
{
PlayMusic("Yourmusic.ogg"true111false);


"Veni, vidi, vici."
"I came, I saw, I conquered."
05-03-2013, 02:43 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
RE: Checkpoints and autosave help - by PutraenusAlivius - 05-03-2013, 02:43 PM



Users browsing this thread: 1 Guest(s)