The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Enemies Disappear
convolution223 Offline
Member

Posts: 78
Threads: 15
Joined: Jul 2011
Reputation: 0
#1
Enemies Disappear

hello, this is my first time making a map with HPL2 and I noticed that whenever the player dies and respawns at the level start, all the enemies vanish. I tried putting the following in the .hps file but it doesn't seem to do anything:

void OnEnter()
{
    if (GetEntityExists("brute1")==false){
        CreateEntityAtArea("brute1", "servant_brute.ent", "brute1_Spawn", true);
    }
    
AddEntityCollideCallback("Player", "script_area2", "CollideAreaTest02", true, 1);
}
Please help me.

EDIT: "brute1" is what i called the brute in the level editor. and "brute1_Spawn" is the script area box i placed in the level editor.
(This post was last modified: 07-08-2011, 06:55 PM by convolution223.)
07-08-2011, 06:53 PM
Find


Messages In This Thread
Enemies Disappear - by convolution223 - 07-08-2011, 06:53 PM
RE: Enemies Disappear - by Paulpolska - 07-08-2011, 07:06 PM
RE: Enemies Disappear - by convolution223 - 07-08-2011, 09:34 PM
RE: Enemies Disappear - by convolution223 - 07-09-2011, 05:22 AM
RE: Enemies Disappear - by crosser3x - 07-09-2011, 10:13 PM
RE: Enemies Disappear - by Im_Sexy - 07-10-2011, 12:18 AM
RE: Enemies Disappear - by AlexRobillard - 07-10-2011, 08:51 PM
RE: Enemies Disappear - by Khyrpa - 07-10-2011, 09:30 PM
RE: Enemies Disappear - by Im_Sexy - 07-11-2011, 09:52 PM



Users browsing this thread: 1 Guest(s)