Jump to content
Sign in to follow this  
Andrew_S90

Multiplayer Custom Remote Executables Help (call RE; )

Recommended Posts

Hey guys, I have a problem I am stuck on, maybe someone here can help me out or point me in the correct direction!

I am trying to make a custom RE message to send to everyone in the server.. Currently it is working using rHINT and I would like to use a different form of text chat, something that I can put in a different section of the screen.

This is what I have working..

_message = parseText format["%2 <br /> <img image='%3' size='3' /><br /> <t color='#ff0000'>%1</t>];

then to call it, I use [nil, nil, rHINT, _message] call RE;

I would like to do something along the lines of

_message = ctrlSetStructuredText parseText format ["%2 <br /> <img image='%3' size='3' /><br /> <t color='#ff0000'>%1</t>];

then set it to a position on the screen, I have a method of doing this, but if you could point out a better way, that would be great!

Then it would be called like [nil, nil, rTEXT, _message] call RE; (I am mainly looking for how to make rTEXT or a custom RE message work!) Thanks!

Any pointers or info here would be great!!

To note I was looking at this page https://community.bistudio.com/wiki/Multiplayer_framework

I noticed a custom part of it, yet I didn't understand it much.. specifically this part

IhdpdEv.png

Thanks guys, anything helps!

Andrew

Edited by Andrew_S90

Share this post


Link to post
Share on other sites

Create a GUI element for the text.

Make a function that displays and changes the text for the GUI element, the text being _this select 1.

Add a publicvariableeventhandler that triggers that function, with eg. the variable being myText.

Just publicvariable the text in the myText variable you want to display for everyone.

Share this post


Link to post
Share on other sites
Create a GUI element for the text.

Make a function that displays and changes the text for the GUI element, the text being _this select 1.

Add a publicvariableeventhandler that triggers that function, with eg. the variable being myText.

Just publicvariable the text in the myText variable you want to display for everyone.

Thanks, I will look into that!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×