zombiehacker595
Member
Posts: 141
Threads: 51
Joined: Mar 2012
Reputation:
3
|
message wont activate
SetEntityPlayerInteractCallback("crowbar_1", "Message2", true);
}
void Message2(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup5", 0);
}
void crowbarpickup(string &in asEntity, string &in type)
{
PlaySoundAtEntity("", "attack_claw_hit.snt", "Player", 0, false);
GivePlayerDamage(15.0f, "damage_claws2", false, false);
SetPlayerActive(true);
SetPlayerCrouching(false);
SetLanternDisabled(false);
GiveSanityDamage(5.0f, true);
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="Popup5">Ahh What Was That</Entry>
</CATEGORY>
so basically i want this .lang message to show up when i pick up the crowbar ive done pop up messages that worked before on script areas but im not sure whats wrong with this one any one got any ideas?
|
|
04-02-2012, 12:20 PM |
|
Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
RE: message wont activate
Put a </LANGUAGE> in the end like this:
</CATEGORY>
< CATEGORY Name="Messages">
< Entry Name="Popup5">Ahh What Was That</Entry>
< /CATEGORY>
</LANGUAGE>
If it doesnt work try checking this tutorial http://wiki.frictionalgames.com/hpl2/tut...iferorange
(This post was last modified: 04-02-2012, 03:43 PM by Datguy5.)
|
|
04-02-2012, 03:42 PM |
|