View Single Post
  #1  
Old 05-29-2014, 09:15 PM
khortez khortez is offline
PrototypeX
khortez's Avatar
Join Date: Dec 2008
Posts: 91
khortez will become famous soon enough
can't find a work around for if a player misses a hit

PHP Code:
function Swing(){
  if(
null in { player.x + 3, player.y + 1.5 } ){ 
    
triggeraction(player.x + 3, player.y + 1.5, "Contact", player.account);
    
player.chat = "Contact!";
  }else{
     
player.chat = "No contact!";
   }
} 
I've been trying to check if the player hit's nothing. been kind of difficult to do and this is my latest attempt, any suggestions?
Reply With Quote