Frictional Games Forum (read-only)

Full Version: You have to hepl me... XD
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to change message "You have to carry on" in my CS?
(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:
Code:
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.
i'm a newbie,to make Checkpoint i need create script area?
(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".
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)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).
CheckPoint ("INTERNALNAME", "NEWSTARTPOS", "FUNCTOCALLONDEATH", "DEATHHINTCAT", "DEATHHINTLAN");