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
Script Help New Checkpoint problem second Checkpoint
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#9
RE: How do you make Check points?(still help needed)

I tried it out and this one should work:
place a script area for when you should make a checkpoint, and place a PlayerStartArea where you want to spawn after you died.
.hps file:
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""ScriptAreaNameHere""CheckpointMaker"true1);
}
void CheckpointMaker(string &in asParentstring &in asChildint alState)
{
 
CheckPoint ("""PlayerStartAreaNameHere""""CategoryNameHere""EntrynameHere");

.lang file:
<LANGUAGE>
<CATEGORY Name="CategoryNameHere">
<Entry Name="EntryNameHere">DeathMessageHere</Entry>
</CATEGORY>
</LANGUAGE>

Replace all "...NameHere" with the ones you used in the level editor/want to use.
06-28-2012, 03:29 PM
Find


Messages In This Thread
RE: How do you make Check points? - by Adny - 06-27-2012, 10:17 PM
RE: How do you make Check points? - by Steve - 06-28-2012, 07:21 AM
RE: How do you make Check points? - by Steve - 06-28-2012, 02:33 PM
RE: How do you make Check points? - by Cruzore - 06-28-2012, 02:46 PM
RE: How do you make Check points? - by Steve - 06-28-2012, 03:00 PM
RE: How do you make Check points?(still help needed) - by Cruzore - 06-28-2012, 03:29 PM



Users browsing this thread: 1 Guest(s)