The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help message wont activate
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
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?
(This post was last modified: 04-02-2012, 12:21 PM by zombiehacker595.)
04-02-2012, 12:20 PM
Find


Messages In This Thread
message wont activate - by zombiehacker595 - 04-02-2012, 12:20 PM
RE: message wont activate - by Datguy5 - 04-02-2012, 03:42 PM



Users browsing this thread: 1 Guest(s)