Jump to content
Liven_28

Input detection

Recommended Posts

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

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

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
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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×