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


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)