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 Newbie problems that are driving me crazy!
Vic7im Offline
Junior Member

Posts: 44
Threads: 9
Joined: Sep 2012
Reputation: 3
#6
RE: Newbie problems that are driving me crazy!

(09-21-2012, 03:22 PM)Nemet Robert Wrote: It won't show until you properly check for quotation marks and everything. There's a tiny mistake in there. Otherwise, post the lang file as an attachment. I'll fix that.

Thanks, there was a "<zEntry> because I was typing fast Tongue

But again *sigh* Messages don't work.

Door name is Study, PlayerInteractCallback name is NoCrowbar

void OnStart()
{
SetEntityPlayerInteractCallback("NoCrowbar", "Hint1", true);
}


void Hint1 (string &in asEntity)
{
if(GetLocalVarInt("MessageSet") != 1)
{
SetMessage("Messages", "HintDoor", 4.0f);
SetLocalVarInt("MessageSet", 1);
}
}


///////////// Lang file ///////////////////

<CATEGORY NAME="Messages">
<Entry Name="HintDoor">Text here</Entry>
</CATEGORY>

The same door is opened by a Key, and that script works fine. It's this script I'm having trouble with. Any suggestions?
09-21-2012, 03:45 PM
Find


Messages In This Thread
RE: Newbie problems that are driving me crazy! - by Vic7im - 09-21-2012, 03:45 PM



Users browsing this thread: 9 Guest(s)