Kirbypwnage
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2013
Reputation:
1
|
Enemy respawn?
Okay, so on my map I want the player to be able to be killed by two monsters, but I also want the player to be able to lure them out on a bridge, so they fall down and die. I have fixed that scripting, and everything works fine. But if the player gets killed by the monsters, they will despawn... And they are needed to go further. So my question is if it is possible to make an enemy respawn just like you, when you die?
Or rather, how do I stop an enemy from despawning after you die?
Is there any way to do this?
(This post was last modified: 02-24-2013, 05:03 PM by Kirbypwnage.)
|
|
02-23-2013, 02:13 PM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Enemy respawn?
I think that it is hard-coded.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
02-23-2013, 02:31 PM |
|
Kirbypwnage
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2013
Reputation:
1
|
RE: Enemy respawn?
(02-23-2013, 02:31 PM)JustAnotherPlayer Wrote: I think that it is hard-coded.
I don't mind. As long as someone can tell me how.
|
|
02-23-2013, 02:35 PM |
|
tonitoni1998
Member
Posts: 163
Threads: 54
Joined: Oct 2012
Reputation:
1
|
RE: Enemy respawn?
Maybe you can work with CreateDataCache. I dont know exactly how it works, but with a checkpoint it migth work somehow. I dont know how though :/
When you are looking for someone, to do the scripting for your Custom Story, ask me!
|
|
02-23-2013, 02:47 PM |
|
Kirbypwnage
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2013
Reputation:
1
|
RE: Enemy respawn?
(02-23-2013, 02:47 PM)tonitoni1998 Wrote: Maybe you can work with CreateDataCache. I dont know exactly how it works, but with a checkpoint it migth work somehow. I dont know how though :/
Doesn't matter if you know how to do it 100%. I'm glad your trying to help anyway.
|
|
02-23-2013, 02:50 PM |
|
OriginalUsername
Posting Freak
Posts: 896
Threads: 42
Joined: Feb 2013
Reputation:
34
|
RE: Enemy respawn?
Creating an checkpoint should do it.
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
|
|
02-23-2013, 02:56 PM |
|
Kirbypwnage
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2013
Reputation:
1
|
RE: Enemy respawn?
(02-23-2013, 02:56 PM)Smoke Wrote: Creating an checkpoint should do it.
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
Oh? In that case, it should be quite simple. Thanks for helping!
|
|
02-23-2013, 02:59 PM |
|
OriginalUsername
Posting Freak
Posts: 896
Threads: 42
Joined: Feb 2013
Reputation:
34
|
RE: Enemy respawn?
(02-23-2013, 02:59 PM)Kirbypwnage Wrote: (02-23-2013, 02:56 PM)Smoke Wrote: Creating an checkpoint should do it.
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
Oh? In that case, it should be quite simple. Thanks for helping!
Click this for more help with commands.
|
|
02-23-2013, 03:14 PM |
|
Kirbypwnage
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2013
Reputation:
1
|
RE: Enemy respawn?
Hmm. No, a checkpoint does not work. I respawn where I want to and everything is good, but the monsters are still gone.
|
|
02-23-2013, 03:38 PM |
|
OriginalUsername
Posting Freak
Posts: 896
Threads: 42
Joined: Feb 2013
Reputation:
34
|
RE: Enemy respawn?
Could you give us the script?
|
|
02-23-2013, 03:52 PM |
|
|