Thread: Damage Blocks
View Single Post
  #4  
Old 04-30-2013, 02:43 PM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
How do you make a player trigger a function in another player?

For example...

PHP Code:
//#CLIENTSIDE
function onKeyPressed(codekey)
{
 if (
key == "s")
 {
  
//Trigger function in this weapon/ in player in this y, and x range
  
}
 } 
I though about it and the "damage block" idea was more complex then I thought. So I'm sticking with triggering a function for both the NPC and player in seperate lines.
__________________
No matter how much I hate graal, I'm always coming back.

smh
Reply With Quote