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
Repeat monster
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#5
RE: Repeat monster

(06-18-2011, 10:54 PM)Karai16 Wrote:
(06-18-2011, 10:42 PM)Nye Wrote: Maybe set a checkpoint, and create a callback to a procedure that will set the grunt active (or an a timer)

CheckPoint(string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

Alternatively, just create a collide area, that isn't destroyed when the player crosses it; so the player can cross it again after they have died and respawn the monster.

god I feel dumb now, I have no idea of to make/use both of your suggestions v.v


I'm assuming you know how to use the Entity Collide callback. Make the auto-remove true. In your OnStart() add:

CheckPoint("", "StartPosition", "Reset", "", "");

Then, somewhere outside of your OnStart(), add:

void Reset (string &in asName, int alCount)
{
          //The same collide callback goes here
}


Basically all this does is check when you die, respawns you at StartPosition and runs the function Reset. Inside Reset, is a simple line that re-adds an EntityCollideCallback so that it will function again but only after you die.

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
(This post was last modified: 06-19-2011, 12:00 AM by DamnNoHtml.)
06-18-2011, 11:59 PM
Find


Messages In This Thread
Repeat monster - by Karai16 - 06-18-2011, 10:30 PM
RE: Repeat monster - by Nye - 06-18-2011, 10:42 PM
RE: Repeat monster - by Karai16 - 06-18-2011, 10:54 PM
RE: Repeat monster - by Nye - 06-18-2011, 10:56 PM
RE: Repeat monster - by Russ Money - 06-19-2011, 12:15 AM
RE: Repeat monster - by Nye - 06-19-2011, 03:01 AM
RE: Repeat monster - by DamnNoHtml - 06-18-2011, 11:59 PM
RE: Repeat monster - by MrBigzy - 06-19-2011, 12:38 PM



Users browsing this thread: 1 Guest(s)