Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-10-2010, 07:30 PM
Black_knights55 Black_knights55 is offline
Registered User
Join Date: Jan 2008
Posts: 24
Black_knights55 is on a distinguished road
Thanks, that's working.
Now, I did a new projectile called val_shuriken.png and a new gani called temp_shuri.gani. I've replaced "arrow" and "barrow0.png" but I guess I'm doing something wrong because now there's nothing shooting at all.

NPC Code:
//#CLIENTSIDE
function onWeaponFired()
{
setani("shoot",0);
temp.angle = getangle(vecx(player.dir), vecy(player.dir));
shoot(player.x, player.y, player.z, temp.angle, 0, 0, "temp_shuri", "val_shuriken.png");
freezeplayer(0.3);
}

Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:01 PM.


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