daortir
Senior Member
Posts: 422
Threads: 9
Joined: Sep 2013
Reputation:
18
|
Making a monster remain after it killed the player
Good afternoon everyone !
I was simply wondering if there was a way to make a monster "survive" after it killed the player. I did not manage to find anything on this issue and I would like to know if it is possible ^^.
Or maybe with a resetprop function ? Though I doubt it'd work with enemies x)
|
|
01-19-2014, 01:37 PM |
|
RaideX
Member
Posts: 212
Threads: 33
Joined: May 2013
Reputation:
7
|
RE: Making a monster remain after it killed the player
the only thing i can think of is with the checkpoint function. This would simulate the persistence of an enemy.
void CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
Sets a checkpoint at which the player will respawn in case he dies.
Callback syntax: void MyFunc(string &in asName, int alCount)
Count is 0 on the first checkpoint load!
asName - the internal name
asStartPos - the name of the StartPos in the editor
asCallback - the function to call when the player dies/respawns
asDeathHintCat - the category of the death hint message to be used in the .lang file
asDeathHintEntry - the entry in the .lang file
Just use a function "asCallback" that activates an enemy near the respawn location.
If you don't draw first, you don't get to draw at all... -The False Shepherd
(This post was last modified: 01-19-2014, 02:12 PM by RaideX.)
|
|
01-19-2014, 02:04 PM |
|
daortir
Senior Member
Posts: 422
Threads: 9
Joined: Sep 2013
Reputation:
18
|
RE: Making a monster remain after it killed the player
I forgot about that : D !That's actually a really good thing, I could make a different monster spawn each time the player dies, so that he cannot really get used to the enemy's position.
Thanks very much for the help <3.
|
|
01-19-2014, 02:18 PM |
|
RaideX
Member
Posts: 212
Threads: 33
Joined: May 2013
Reputation:
7
|
RE: Making a monster remain after it killed the player
(01-19-2014, 02:18 PM)daortir Wrote: I forgot about that : D !That's actually a really good thing, I could make a different monster spawn each time the player dies, so that he cannot really get used to the enemy's position.
Thanks very much for the help <3. no problem. :3
If you don't draw first, you don't get to draw at all... -The False Shepherd
|
|
01-19-2014, 02:59 PM |
|