Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
You have to hepl me... XD
Ank2503 Offline
Junior Member

Posts: 21
Threads: 7
Joined: Aug 2012
Reputation: 0
#1
Wink  You have to hepl me... XD

How to change message "You have to carry on" in my CS?

[Image: 76561198049041280.png]
08-28-2012, 08:13 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#2
RE: You have to hepl me... XD

(08-28-2012, 08:13 PM)Ank2503 Wrote: How to change message "You have to carry on" in my CS?
The only way I saw that was to use a checkpoint. The script for the checkpoint is this one:
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)

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

Hope this helps.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
08-28-2012, 08:17 PM
Website Find
Ank2503 Offline
Junior Member

Posts: 21
Threads: 7
Joined: Aug 2012
Reputation: 0
#3
RE: You have to hepl me... XD

i'm a newbie,to make Checkpoint i need create script area?

[Image: 76561198049041280.png]
08-28-2012, 08:19 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#4
RE: You have to hepl me... XD

(08-28-2012, 08:19 PM)Ank2503 Wrote: i'm a newbie,to make Checkpoint i need create script area?
You can trigger that in many ways. You can use a script area for example (when you come in contact with it, it triggers the "checkpoint" script.

You can use a simple timer as well. With checkpoints you can repeat a certain event (like a chase) until you get past it. And THAT is where you can add a "death hint".

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
08-28-2012, 08:21 PM
Website Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#5
RE: You have to hepl me... XD

help*

lol
here
void OnStart()
{
AddEntityCollideCallback("Player", "SCRIPTAREA", "DeathHint", false, 1);

}


void DeathHint(string &in asParent, string &in asChild, int alState)
{
SetDeathHint("Hints", "Death1");
}

LANGFILE

<CATEGORY Name="Hints">
<Entry Name="Death1">Get out of the water dumb shit.</Entry>
</CATEGORY
08-28-2012, 08:32 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#6
RE: You have to hepl me... XD

(08-28-2012, 08:32 PM)Harthex Wrote: help*

lol
here
void OnStart()
{
AddEntityCollideCallback("Player", "SCRIPTAREA", "DeathHint", false, 1);

}


void DeathHint(string &in asParent, string &in asChild, int alState)
{
SetDeathHint("Hints", "Death1");
}

LANGFILE


Get out of the water dumb shit.


I never saw that function before. But that pretty much wraps it all up. Forget the checkpoint I talked about, I can't really help when it comes to that. I always fail at helping (well, not always).

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
08-28-2012, 08:35 PM
Website Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#7
RE: You have to hepl me... XD

CheckPoint ("INTERNALNAME", "NEWSTARTPOS", "FUNCTOCALLONDEATH", "DEATHHINTCAT", "DEATHHINTLAN");
08-28-2012, 09:25 PM
Find




Users browsing this thread: 3 Guest(s)