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
#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


Messages In This Thread
Monsters respawn - by candlejack131 - 08-05-2012, 03:23 AM
RE: Monsters respawn - by Your Computer - 08-05-2012, 03:53 AM
RE: Monsters respawn - by candlejack131 - 08-05-2012, 05:28 AM
RE: Monsters respawn - by EXAWOLT - 08-05-2012, 10:39 AM
RE: Monsters respawn - by candlejack131 - 08-05-2012, 05:47 PM
RE: Monsters respawn - by lolmaster - 08-05-2012, 05:52 PM
RE: Monsters respawn - by Steve - 08-05-2012, 05:52 PM
RE: Monsters respawn - by candlejack131 - 08-05-2012, 07:31 PM
RE: Monsters respawn - by Steve - 08-05-2012, 07:43 PM
RE: Monsters respawn - by candlejack131 - 08-05-2012, 10:06 PM



Users browsing this thread: 1 Guest(s)