Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-16-2014, 09:45 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
PHP Code:
//#CLIENTSIDE 
function onKeyPressed(codekey){ 
 if (
key == "s"){ 
  
setAni("sword"NULL); 
  
findAreaPlayers();
  
triggerAction("weapon""DamageSystem""onHit"); 
 } 

is this right? If not, what modifications or errors need to be fixed?
Reply With Quote
  #2  
Old 05-16-2014, 09:52 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by i8bit View Post
PHP Code:
//#CLIENTSIDE 
function onKeyPressed(codekey){ 
 if (
key == "s"){ 
  
setAni("sword"NULL); 
  
findAreaPlayers();
  
triggerAction("weapon""DamageSystem""onHit"); 
 } 

is this right? If not, what modifications or errors need to be fixed?
No, try to make your own researches about findAreaPlayers() and triggerAction(). I'm pretty sure you will find enough stuff about that in the NPC section on here, else you're not looking properly
__________________
MEEP!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.