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
Insanity sound
Lars Offline
Junior Member

Posts: 13
Threads: 2
Joined: Jan 2015
Reputation: 0
#9
RE: Insanity sound

(04-04-2015, 05:29 PM)Darkfire Wrote: That's true. And I think you have to kind of reset the script, for example if you have AddEntityCollideCallback that triggers the monster, you'll have to use that script again in the checkpoint script, because it disappears after first usage. Like this:

Spoiler below!

void OnStart
{
AddEntityCollideCallback("Player", "ScriptArea", "FreeMonster", true, 1);
}

void FreeMonster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Monster", true);
CheckPoint ("aa", "PlayerStart_1", "CheckP", "Hints", "RespawnHint1");
}
void CheckP(string &in asName, int alCount)
{
AddEntityCollideCallback("Player", "ScriptArea", "FreeMonster", true, 1);
}



Say if you don't understand smth.
So what you actually do is set a checkpoint when the monster spawns or at another point and within that function you reset the command wich calls in the monster by just putting in in there again.
(This post was last modified: 04-05-2015, 02:36 PM by Lars.)
04-05-2015, 02:36 PM
Find


Messages In This Thread
Insanity sound - by Lars - 04-02-2015, 04:19 PM
RE: Insanity sound - by Darkfire - 04-02-2015, 05:55 PM
RE: Insanity sound - by Lars - 04-02-2015, 07:28 PM
RE: Insanity sound - by Daemian - 04-02-2015, 08:14 PM
RE: Insanity sound - by Darkfire - 04-02-2015, 10:28 PM
RE: Insanity sound - by Lars - 04-04-2015, 03:46 PM
RE: Insanity sound - by Slanderous - 04-04-2015, 04:44 PM
RE: Insanity sound - by Darkfire - 04-04-2015, 05:29 PM
RE: Insanity sound - by Lars - 04-05-2015, 02:36 PM
RE: Insanity sound - by Darkfire - 04-05-2015, 03:31 PM
RE: Insanity sound - by Lars - 08-17-2015, 01:16 PM
RE: Insanity sound - by jens - 08-17-2015, 01:52 PM
RE: Insanity sound - by Lars - 08-17-2015, 02:22 PM
RE: Insanity sound - by Lars - 08-17-2015, 04:14 PM
RE: Insanity sound - by Slanderous - 08-17-2015, 04:37 PM
RE: Insanity sound - by Lars - 08-17-2015, 04:43 PM



Users browsing this thread: 1 Guest(s)