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
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#3
RE: How do you make Check points?

(06-27-2012, 10:17 PM)andyrockin123 Wrote: This might help:

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
Well thanx but I know the code I don't get the other stuff look I have this.
PHP Code: (Select All)
void OnStart(){
 
some AddUseItemCallbacks
 AddEntityCollideCallback
("Player""RD""DeathSpawn"false1); 
}
void DeathSpawn(string &in asParentstring &in asChildint alState)
 {
 
SetEntityActive("RA"false);
 
CheckPoint("CP""RA""DeathFunc1""RespawnDeath""RespawnEntr");
 }
void DeathFunc1(string &in asNameint alCount

SetEntityActive("RA"true); 

RA = The player start's area name
CP = Script area name
RD = this is with the Area part of the script area(PlayerInteractCallback part)

Can you guys tell me what I did wrong?
(This post was last modified: 06-28-2012, 02:26 PM by Steve.)
06-28-2012, 07:21 AM
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



Users browsing this thread: 1 Guest(s)