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
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#7
RE: Checkpoints and autosave help

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);


THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
05-03-2013, 01:18 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: 2 Guest(s)