Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 09-12-2007, 02:52 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by DustyPorViva View Post
No built-in way. Ways of projectiles hurting via playertouchesme is very, very outdated(Stefan used to have the Ice arrows do that in old Graal :P).
Either use projectiles(shoot) and use onActionprojectile(or the other varieties, and I recommend this method) or use a loop of the players and check if the player is in 'touching' the NPC by calculating its distance... or triggeraction.
umkay, how would you use onActionprojectile in a script??

function onWeaponfired(){
shoot(projectile);
}
function onActionProjectile(){
i have no idea;
}
__________________
**FLIP OUT**
Reply With Quote
 


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 03:24 AM.


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