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
Enemy respawn?
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#21
RE: Enemy respawn?

void Monsterfunction(string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("monster", -1);
AddTimer("", 0.1f, "monsterspawn");
}

void monsterspawn(string &in asTimer)
{
if(GetLocalVarInt("monster") == 0)
{
CheckPoint("checkpoint", "PlayerStartArea_2", "check", "Messages", "monsterhint");
SetMessage("Messages", "henrytalk4", 0);
SetEntityActive("floyd", true);
SetEntityActive("charles", true);
}
else
{
}
}

This might do it.
And you also have to change the true in addentitycollidecallback to false, so it wont delete itself
02-24-2013, 01:35 PM
Find
Kirbypwnage Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2013
Reputation: 1
#22
RE: Enemy respawn?

(02-24-2013, 01:35 PM)Smoke Wrote:
void Monsterfunction(string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("monster", -1);
AddTimer("", 0.1f, "monsterspawn");
}

void monsterspawn(string &in asTimer)
{
if(GetLocalVarInt("monster") == 0)
{
CheckPoint("checkpoint", "PlayerStartArea_2", "check", "Messages", "monsterhint");
SetMessage("Messages", "henrytalk4", 0);
SetEntityActive("floyd", true);
SetEntityActive("charles", true);
}
else
{
}
}

This might do it.
And you also have to change the true in addentitycollidecallback to false, so it wont delete itself

Okay, thanks! I'll test it later. Wink

EDIT: It worked! Thank you for your help, I appreciate it! Big Grin

Currently working on:
Archedale Castle: Cold Hunger
http://www.moddb.com/mods/archedale-castle
(This post was last modified: 02-24-2013, 04:58 PM by Kirbypwnage.)
02-24-2013, 02:34 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#23
RE: Enemy respawn?

(02-24-2013, 02:34 PM)Kirbypwnage Wrote:
(02-24-2013, 01:35 PM)Smoke Wrote:
void Monsterfunction(string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("monster", -1);
AddTimer("", 0.1f, "monsterspawn");
}

void monsterspawn(string &in asTimer)
{
if(GetLocalVarInt("monster") == 0)
{
CheckPoint("checkpoint", "PlayerStartArea_2", "check", "Messages", "monsterhint");
SetMessage("Messages", "henrytalk4", 0);
SetEntityActive("floyd", true);
SetEntityActive("charles", true);
}
else
{
}
}

This might do it.
And you also have to change the true in addentitycollidecallback to false, so it wont delete itself

Okay, thanks! I'll test it later. Wink

EDIT: It worked! Thank you for your help, I appreciate it! Big Grin

You're welcome man Wink Glad I could help
02-24-2013, 05:49 PM
Find




Users browsing this thread: 1 Guest(s)