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
Resetting a Map or an Entity?
TimProzz Offline
Junior Member

Posts: 23
Threads: 8
Joined: May 2016
Reputation: 0
#2
RE: Resetting a Map or an Entity?

void CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
Sets a checkpoint at which the player will respawn in case he dies.

With the checkpoint you can also call a function after the player dies. In that checkpoint function you can for example reset some entities with:

void ResetProp(string& asName);
Resets a prop's state to the original one when the map was loaded.

And you can just use
SetEntityActive("enemy_name", true);
again on the same enemy to spawn it again

Mod I'm working on: Illusions of the Dead 2
ModDB Illusions of the Dead 2
(This post was last modified: 08-03-2017, 12:38 AM by TimProzz.)
08-02-2017, 11:00 PM
Find


Messages In This Thread
Resetting a Map or an Entity? - by Umukzus - 08-02-2017, 08:02 PM
RE: Resetting a Map or an Entity? - by TimProzz - 08-02-2017, 11:00 PM
RE: Resetting a Map or an Entity? - by Umukzus - 08-03-2017, 02:11 PM



Users browsing this thread: 1 Guest(s)