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
Restart a whole battle?
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#2
RE: Restart a whole battle?

I managed to bring back my monsters with the checkpoint script. You can make a collide script box, and the function you call for it can be the checkpoint. The checkpoint function callback can reset your monsters and other functions.

I believe you may have to put additional monsters that are inactive that are set to active during the checkpoint callback, however you may not have to do that, just fiddle around and see what works for you.

This is an example of what the script would look like for that:

Spoiler below!
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""Checkpoint""CheckPoint"false1);
}

void CheckPoint(string &in asParentstring &in asChildint alState
{
CheckPoint ("""PlayerStartArea_1""CheckpointRespawnScript""Hints""Death_Hint1");
}

void Checkpoint RespawnScript(string &in asNameint alCount
{
SetEntityActive("monster1"true);
SetEntityActive("monster2"true);
SetEntityActive("monster3"true);



You'd have to play around with names, obviously, to see what works for you, but that should work. Big Grin

10-31-2014, 11:05 PM
Find


Messages In This Thread
Restart a whole battle? - by Amnesiaplayer - 10-31-2014, 09:48 PM
RE: Restart a whole battle? - by MsHannerBananer - 10-31-2014, 11:05 PM
RE: Restart a whole battle? - by Amnesiaplayer - 10-31-2014, 11:08 PM
RE: Restart a whole battle? - by Mudbill - 11-01-2014, 01:07 AM
RE: Restart a whole battle? - by DnALANGE - 11-01-2014, 12:25 PM
RE: Restart a whole battle? - by Darkfire - 11-01-2014, 07:06 PM



Users browsing this thread: 3 Guest(s)