Jump to content
  • 0

Would this function work?


Gr8

Question

5 answers to this question

Recommended Posts

  • 0

Well you can call RE clientside but I'm unsure if it produces the same effect as when called serverside. During testing of things previous I've called titleText through RE clientside and it worked, but I'm not sure if it only worked for me or if it propogated through the network.

 

To test it properly go into your 'init.sqf' file in your mission files and add this code right at the bottom.

if (isServer) then {
    'TESTRE' addPublicVariableEventHandler
    {
        private ['_message'];
        _message = _this select 1;
        [nil,nil,rSYSTEMCHAT,_message] call RE;
    };
} else {
    (findDisplay 46) displayAddEventHandler ['keyDown','if ((_this select 1) == 0x42) then {TESTRE = "Test Message!"; publicVariableServer "TESTRE";};'];
};

With that in place, hop in game and press F8 and if you can use systemChat through RE you should see 'Test Message!' in systemChat. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...