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 Is it possible to set a message through a string variable?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#10
RE: Is it possible to set a message through a string variable?

So eh... yes, I'm sure it'll work ^_^

Yay, people learn!

(08-30-2014, 05:31 PM)First Captain Wrote:
(08-30-2014, 03:27 PM)FlawlessHappiness Wrote: SetMessage("Messages", GetLocalVarString("StringVar"), 0);

Like what Daemian said, how is it possible? The argument is
PHP Code: (Select All)
void SetMessage(stringasTextCategorystringasTextEntryfloat afTime); 

The second argument is the Entry in the .lang file. This obviously won't work because the second argument IS FOR the Entry in the Category, NOT FOR a StringVariable.

Also this:
Did you notice the SetMessage has string& asTextEntry for the entry?
That little "string&" is the exact reason I can do it. Because it's just a string. A string is a word. It'll just change the LocalVarString to the word it's supposed to be.

I can also confirm that it works, since I'm using it in my Mod.

Trying is the first step to success.
(This post was last modified: 08-30-2014, 06:32 PM by FlawlessHappiness.)
08-30-2014, 06:29 PM
Find


Messages In This Thread
RE: Is it possible to set a message through a string variable? - by FlawlessHappiness - 08-30-2014, 06:29 PM



Users browsing this thread: 1 Guest(s)