Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting used to make a checkpoint?
Author Message
FreshKorruption Offline
Member

Posts: 94
Joined: Oct 2011
Reputation: 1
Post: #1
Scripting used to make a checkpoint?
I know that it is like this, but what do i fill them in with. Can i get an example?
void CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

Custom Stories

-BrastaSauce

11-26-2011 01:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,600
Joined: Sep 2011
Reputation: 198
Post: #2
RE: Scripting used to make a checkpoint?
(11-26-2011 01:59 AM)FreshKorruption Wrote:  I know that it is like this, but what do i fill them in with. Can i get an example?
void CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
**This should be in the Support section**

CheckPoint("", "SPAWNAREANAME", "", "", "");

Lol It can be that naked. To fill in:

CheckPoint("Checkpointname", "SPAWNAREANAME", "", "DeathHintCategory", "DeathHintEntry");

(This post was last modified: 11-26-2011 02:04 AM by Statyk.)
11-26-2011 02:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FreshKorruption Offline
Member

Posts: 94
Joined: Oct 2011
Reputation: 1
Post: #3
RE: Scripting used to make a checkpoint?
(11-26-2011 02:02 AM)Statyk Wrote:  
(11-26-2011 01:59 AM)FreshKorruption Wrote:  I know that it is like this, but what do i fill them in with. Can i get an example?
void CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
**This should be in the Support section**

CheckPoint("", "SPAWNAREANAME", "", "", "");

Lol It can be that naked. To fill in:

CheckPoint("Checkpointname", "SPAWNAREANAME", "", "DeathHintCategory", "DeathHintEntry");
What i'm confused about is how there is the usual void onstart and you put stuff in there (like a nickname and stuff) and than you have void (nickname). What do you put in each individual one? Hope you understood that.

Custom Stories

-BrastaSauce

(This post was last modified: 11-26-2011 02:21 AM by FreshKorruption.)
11-26-2011 02:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
junkfood2121 Offline
Senior Member

Posts: 267
Joined: Jan 2011
Reputation: 3
Post: #4
RE: Scripting used to make a checkpoint?
I put it in a collidebox or event at a place where it's possible for a player to die, so that you will respawn on the checkpoint after death.

May I present to you.. the Grunt Cannon:
http://www.youtube.com/watch?v=v9KjvvVzNNg
11-26-2011 02:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #5
RE: Scripting used to make a checkpoint?
You put this in the void Onstart
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
And you do this for the callback
void MyFunc(string &in asName, int alCount)

11-26-2011 03:33 AM
Find all posts by this user Quote this message in a reply
FreshKorruption Offline
Member

Posts: 94
Joined: Oct 2011
Reputation: 1
Post: #6
RE: Scripting used to make a checkpoint?
(11-26-2011 03:33 AM)flamez3 Wrote:  You put this in the void Onstart
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
And you do this for the callback
void MyFunc(string &in asName, int alCount)
Thanks. Im still a lil rusty though =/ So what would i put in thhe int alCount and string &in asName?

Custom Stories

-BrastaSauce

11-26-2011 05:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,600
Joined: Sep 2011
Reputation: 198
Post: #7
RE: Scripting used to make a checkpoint?
(11-26-2011 05:00 AM)FreshKorruption Wrote:  Thanks. Im still a lil rusty though =/ So what would i put in thhe int alCount and string &in asName?
Lol definitely a little rusty... =P You don't put anything there. here's an example:

//_________________
void OnStart();
{
CheckPoint("", "SPAWNAREANAME", "CALLBACKFUNC", "", "");
}

void CALLBACKFUNC(string &in asName, int alCount)
{
//your scripts here. =P
}

11-26-2011 05:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FreshKorruption Offline
Member

Posts: 94
Joined: Oct 2011
Reputation: 1
Post: #8
RE: Scripting used to make a checkpoint?
(11-26-2011 05:26 AM)Statyk Wrote:  
(11-26-2011 05:00 AM)FreshKorruption Wrote:  Thanks. Im still a lil rusty though =/ So what would i put in thhe int alCount and string &in asName?
Lol definitely a little rusty... =P You don't put anything there. here's an example:

//_________________
void OnStart();
{
CheckPoint("", "SPAWNAREANAME", "CALLBACKFUNC", "", "");
}

void CALLBACKFUNC(string &in asName, int alCount)
{
//your scripts here. =P
}
Thanks. Gave you some reputation for helping =D

Custom Stories

-BrastaSauce

12-01-2011 11:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)