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 Text on screen when looking at a certain model
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#2
RE: Text on screen when looking at a certain model

I'm not sure, but I think I know how to do this.

Click on the Object you want, and then go to "entity" tab.
Then Write something like, "Message1" in the PlayerInteractCallback.
Then do it like this in your script :

PHP Code: (Select All)
void Message1(string &in asEntity)
{
SetMessage("Messages"">YourMessagename<"1);


EDIT: the 1 at the end of setmessage means how long the text will stay.
(also, don't forgot to use your lang file)

Hope this helped.
Tell me if it worked Smile
(This post was last modified: 05-05-2015, 07:05 PM by Amnesiaplayer.)
05-05-2015, 07:04 PM
Find


Messages In This Thread
RE: Text on screen when looking at a certain model - by Amnesiaplayer - 05-05-2015, 07:04 PM



Users browsing this thread: 1 Guest(s)