Liven_28   20 Posted February 4, 2019 Hello I try to detect inputs of players I was thinking something like than would works, but it don't 😞 modded class MissionGameplay { override void OnKeyRelease(int key) { super.OnKeyRelease(key); if ( key == KeyCode.KC_B ) { GetGame().ChatPlayer(1,"hello"); } } } Is someone can help me? Share this post Link to post Share on other sites
Liven_28 Â Â 20 Posted February 5, 2019 pls is someone can help me, I really need this to save hours (days) of work Share this post Link to post Share on other sites
Liven_28 Â Â 20 Posted February 27, 2019 Nobody to answer this? No doc? No tuto? No sample? for this simple fonction I looked at RPC and mods like CoT or Trader but nothing I tried works It begin to be really boring modding on Dayz. I feel wasting my time. Share this post Link to post Share on other sites
Vasily Elda   1 Posted February 27, 2019 1 hour ago, Liven_28 said: It begin to be really boring modding on Dayz. I feel wasting my time. yep. go to play minecraft and "code" on java 😃 Share this post Link to post Share on other sites
Dylan Greene   3 Posted March 9, 2019 On 2/27/2019 at 3:32 PM, Liven_28 said: Nobody to answer this? No doc? No tuto? No sample? for this simple fonction I looked at RPC and mods like CoT or Trader but nothing I tried works It begin to be really boring modding on Dayz. I feel wasting my time. Well there isn't great documentation so it may be best to wait. Otherwise it will take a lot of trial and error. As for input detection though, I'm pretty sure that's only client side. So you may have luck looking into some other dayz SA repositories and see how they do it. Good luck Share this post Link to post Share on other sites
lbmaster   21 Posted April 24, 2019 Your code should work. Maybe you messed up your Mod-Config or try to replace GetGame().ChatPlayer(1,"hello"); with PlayerBase player = PlayerBase.Cast(GameGame().GetPlayer()); if (player) { player.MessageImportant("hello"); }  Share this post Link to post Share on other sites
Liven_28 Â Â 20 Posted April 26, 2019 Thank you for the answer I have already found the solution (the config.cpp was not done the right way) Share this post Link to post Share on other sites