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
monster Despawn
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: monster Despawn

Before the player dies, you must set a checkpoint

PHP Code: (Select All)
CheckPoint (stringasNamestringasStartPosstringasCallbackstringasDeathHintCatstringasDeathHintEntry); 

Here you specify at what StartPos the player is going to respawn, and you also specify a callback. You're going to use this callback to set the enemy active again. I'm not sure whether you have to place a secondary inactive enemy that you're going to set active, or if you can use the first one.
You're going to have to experiment with that.

The syntax for the checkpoint callback is

PHP Code: (Select All)
void MyFunc(string &in asNameint alCount

Trying is the first step to success.
02-26-2017, 01:41 PM
Find


Messages In This Thread
monster Despawn - by XeOnTricks - 02-26-2017, 05:35 AM
RE: monster Despawn - by FlawlessHappiness - 02-26-2017, 01:41 PM
RE: monster Despawn - by Mudbill - 02-26-2017, 07:04 PM
RE: monster Despawn - by XeOnTricks - 02-27-2017, 04:21 AM



Users browsing this thread: 2 Guest(s)