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
IT WORKS! yay
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#6
RE: Player Respawn on other map

(04-11-2012, 02:48 PM)Mackiiboy Wrote:
(04-11-2012, 02:29 PM)jessehmusic Wrote: Hello i wonder how i make my daniel to die and later wake up on another map ?? any clue?
.
You can set the player's health to 0 by using:
void SetPlayerHealth(float afHealth);

You can set up a checkpoint that calls a function when you die. Put in a mapchange into that function.

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.
Callback syntax: void MyFunc(string &in asName, int alCount)
Count is 0 on the first checkpoint load!

asName - the internal name
asStartPos - the name of the StartPos in the editor
asCallback - the function to call when the player dies/respawns
asDeathHintCat - the category of the death hint message to be used in the .lang file
asDeathHintEntry - the entry in the .lang file

AND

void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);

Immediatly loads another map.

asMapName - the file to load
asStartPos - the name of the StartPos on the next map
asStartSound - the sound that is played when the change starts
asEndSound - the sound that is played when the new map is loaded
whats the callback i should use?

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
04-11-2012, 02:50 PM
Website Find


Messages In This Thread
IT WORKS! yay - by jessehmusic - 04-11-2012, 02:29 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 02:48 PM
RE: Player Respawn on other map - by jessehmusic - 04-11-2012, 02:50 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 02:54 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:03 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:24 PM
RE: Player Respawn on other map - by Stepper321 - 04-11-2012, 02:48 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:36 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:42 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:51 PM
RE: Player Respawn on other map - by DRedshot - 04-11-2012, 03:50 PM



Users browsing this thread: 1 Guest(s)