11-30-2013, 07:47 PM
11-30-2013, 07:52 PM
From wiki:
void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
Displays a message on the screen.
asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length.
void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
Displays a message on the screen.
asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length.
11-30-2013, 08:00 PM
(11-30-2013, 07:52 PM)The Mug Wrote: [ -> ]From wiki:
void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
Displays a message on the screen.
asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length.
Thanks, but how do Imake it appear in certain areas only?
11-30-2013, 08:24 PM
void OnStart()
{
AddEntityCollideCallback("Player", "YourAreaName", "func", true, 1);
}
void func(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "name of the message in extra_english", 7);
}
{
AddEntityCollideCallback("Player", "YourAreaName", "func", true, 1);
}
void func(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "name of the message in extra_english", 7);
}
11-30-2013, 10:50 PM
http://wiki.frictionalgames.com/hpl2/amn..._functions
just in case you need it
just in case you need it
12-01-2013, 11:49 AM
goodcap, no offence, you have already asked this in your other thread and it is some basic stuff which you should be able to figure out using the guides, reference and codes examples from custom stories, so try and figure things out yourself before you come asking. This will make you a lot better and independant coder, but if you don't wish that, i could be your mentor and answer some questions for you.