Gr8 Posted November 28, 2014 Report Share Posted November 28, 2014 Would this function work? [nil, nil, rsystemChat, _message, "PLAIN"] call RE; reproduced from: [nil, nil, rTitleText, _message, "PLAIN"] call RE; Link to comment Share on other sites More sharing options...
0 CordIAsis Posted November 28, 2014 Report Share Posted November 28, 2014 I could be wrong but I don't think you can call systemChat through that RE. If you can thgouh, just remove the 'PLAIN' as systemChat doesn't take any arguments except the string to display. Link to comment Share on other sites More sharing options...
0 Gr8 Posted November 28, 2014 Author Report Share Posted November 28, 2014 Whats an easy way to test it on a test server? Link to comment Share on other sites More sharing options...
0 CordIAsis Posted November 28, 2014 Report Share Posted November 28, 2014 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 More sharing options...
0 Zupa Posted November 28, 2014 Report Share Posted November 28, 2014 https://community.bistudio.com/wiki/Multiplayer_framework Link to comment Share on other sites More sharing options...
0 Gr8 Posted November 28, 2014 Author Report Share Posted November 28, 2014 https://community.bistudio.com/wiki/Multiplayer_framework I cannot find systemChat in there. What would be a equivalent? Link to comment Share on other sites More sharing options...
Question
Gr8
Would this function work?
reproduced from:
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now