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
Making an enemy not despawn after dying
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#2
RE: Making an enemy not despawn after dying

you could create a checkpoint
{
CheckPoint ("checkpoint1", "playerstart_2", "enemykill", "", "";
}

void enemykill(string &in asName, int alCount)

{
SetEntityActive("monster2", true);
SetEntityActive("monster", false);

}

Then Create another monster called monster2 and set him as inactive.
so the callback will set that monster active when you die.and the false one will
delete the first monster if he stayed spawned


This Darn House! , Four Doors, Youtube
04-03-2012, 11:05 AM
Find


Messages In This Thread
RE: Making an enemy not despawn after dying - by heyitsrobert97 - 04-03-2012, 11:05 AM



Users browsing this thread: 1 Guest(s)