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
Monsters respawn
candlejack131 Offline
Member

Posts: 209
Threads: 17
Joined: Oct 2011
Reputation: 2
#1
Monsters respawn

I was wondering if anyone could give me a script that keeps monsters even after death
08-05-2012, 03:23 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Monsters respawn

ResetProp, then SetEntityActive.

Tutorials: From Noob to Pro
08-05-2012, 03:53 AM
Website Find
candlejack131 Offline
Member

Posts: 209
Threads: 17
Joined: Oct 2011
Reputation: 2
#3
RE: Monsters respawn

...? I'm sorry i am a terrible scripter how exactly would i do that
08-05-2012, 05:28 AM
Find
EXAWOLT Offline
Member

Posts: 113
Threads: 14
Joined: Apr 2012
Reputation: 3
#4
RE: Monsters respawn

ResetProp(string& asName);
SetEntityActive(string& asName, bool abActive);

simply nuff said




08-05-2012, 10:39 AM
Find
candlejack131 Offline
Member

Posts: 209
Threads: 17
Joined: Oct 2011
Reputation: 2
#5
RE: Monsters respawn

Were does the name of my entity go
08-05-2012, 05:47 PM
Find
lolmaster Offline
Member

Posts: 170
Threads: 9
Joined: Jul 2012
Reputation: 6
#6
RE: Monsters respawn

Let's say I have a grunt named "grunt."

SetEntityActive("grunt", true);


08-05-2012, 05:52 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#7
RE: Monsters respawn

ResetProp("monster");
SetEntityActive("monster", true);
 
I hope this helps

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 08-05-2012, 05:52 PM by Steve.)
08-05-2012, 05:52 PM
Find
candlejack131 Offline
Member

Posts: 209
Threads: 17
Joined: Oct 2011
Reputation: 2
#8
RE: Monsters respawn

(08-05-2012, 05:52 PM)Steve Wrote: ResetProp("monster");
SetEntityActive("monster", true);

I hope this helps
Fantastic and Thanks Big Grin now my last question were in my hps should i place it
08-05-2012, 07:31 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#9
RE: Monsters respawn

first of all make an Checkpoint with:
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

here an example:
CheckPoint ("mycheckpoint", "mystartposition", "myvoidafterIdie", "Categorynamewhenyoudie", "entrynamewhenyoudie");

so after that(you can make this check point anywhere like when you touch an area or just when you pick up an item also you have to make an startposition for when you start when you die)

void myvoidafterIdie(string &in asName, int alCount)
{
ResetProp("monster");
SetEntityActive("monster", true);
}

and for in the .Lang file:

<CATEGORY Name="Categorynamewhenyoudie">
<Entry Name="entrynamewhenyoudie">pu text you want to see when you die here</Entry>
</CATEGORY>

I hope you get it Big Grin
if not just ask.

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 08-05-2012, 07:44 PM by Steve.)
08-05-2012, 07:43 PM
Find
candlejack131 Offline
Member

Posts: 209
Threads: 17
Joined: Oct 2011
Reputation: 2
#10
RE: Monsters respawn

(08-05-2012, 07:43 PM)Steve Wrote: first of all make an Checkpoint with:
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

here an example:
CheckPoint ("mycheckpoint", "mystartposition", "myvoidafterIdie", "Categorynamewhenyoudie", "entrynamewhenyoudie");

so after that(you can make this check point anywhere like when you touch an area or just when you pick up an item also you have to make an startposition for when you start when you die)

void myvoidafterIdie(string &in asName, int alCount)
{
ResetProp("monster");
SetEntityActive("monster", true);
}

and for in the .Lang file:

<CATEGORY Name="Categorynamewhenyoudie">
<Entry Name="entrynamewhenyoudie">pu text you want to see when you die here</Entry>
</CATEGORY>

I hope you get it Big Grin
if not just ask.
Thanks :3 ill test it out as soon as my custom monster is finished
08-05-2012, 10:06 PM
Find




Users browsing this thread: 1 Guest(s)