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
Enemy respawn?
Kirbypwnage Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2013
Reputation: 1
#1
Question  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?

Currently working on:
Archedale Castle: Cold Hunger
http://www.moddb.com/mods/archedale-castle
(This post was last modified: 02-24-2013, 05:03 PM by Kirbypwnage.)
02-23-2013, 02:13 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
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
Find
Kirbypwnage Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2013
Reputation: 1
#3
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.

Currently working on:
Archedale Castle: Cold Hunger
http://www.moddb.com/mods/archedale-castle
02-23-2013, 02:35 PM
Find
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#4
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
Find
Kirbypwnage Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2013
Reputation: 1
#5
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. Wink

Currently working on:
Archedale Castle: Cold Hunger
http://www.moddb.com/mods/archedale-castle
02-23-2013, 02:50 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#6
RE: Enemy respawn?

Creating an checkpoint should do it.

CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
(This post was last modified: 02-23-2013, 02:57 PM by OriginalUsername.)
02-23-2013, 02:56 PM
Find
Kirbypwnage Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2013
Reputation: 1
#7
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!

Currently working on:
Archedale Castle: Cold Hunger
http://www.moddb.com/mods/archedale-castle
02-23-2013, 02:59 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#8
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
Find
Kirbypwnage Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2013
Reputation: 1
#9
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.

Currently working on:
Archedale Castle: Cold Hunger
http://www.moddb.com/mods/archedale-castle
02-23-2013, 03:38 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#10
RE: Enemy respawn?

Could you give us the script?
02-23-2013, 03:52 PM
Find




Users browsing this thread: 1 Guest(s)