View Single Post
  #36  
Old 01-14-2014, 02:57 AM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
Switching to Clientside

So after a lot of testing and what not, I have come to realize that my damage block system works, but not at the fast pace I am looking for.

Furthermore, I am going to switch to run my damage system all via CLIENTSIDE.

How would I trigger a clientside function in a weapon of another player?

PHP Code:
//#CLIENTSIDE
function onKeyPressed(codekey){
 if (
key == "s"){
  if (
player.x in |this.x-2this.1| && player.y in |this.y-1this.3|) { 
   
//Trigger Clientside function in other player's "System/Health" weapon
   
}
  }

Can anyone fill in that line for me please?
It's also something I'd like to learn for the future.

Also, I'm not sure if my check is right to find players in front. If incorrect, please assist me there too.
Reply With Quote