Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   gani and shoot() trouble (https://forums.graalonline.com/forums/showthread.php?t=86680)

Prozac 07-03-2009 04:01 PM

gani and shoot() trouble
 
2 Attachment(s)
why wont this gani appear when used as the arrow gani?

this is the bow, gani attached

PHP Code:

//#CLIENTSIDE
function onWeaponfired()
{
setani("shoot","");

shoot(player.x+vecx(player.dir), player.y+vecy(player.dir), playerz
getangle(vecx(player.dir),vecy(player.dir)), 1.23pro-arrow21);

sleep(1);
return;



Nabru 07-03-2009 04:04 PM

have you tried the gani in " " 's?

like you did at "setani("shoot",""); "

Pelikano 07-03-2009 04:06 PM

he means "pro-arrow2"

Gambet 07-03-2009 04:14 PM

Quote:

Originally Posted by Prozac (Post 1503867)
Stuff


The code is right except for the lack of quotes in the gani name. Also, I would suggesting using this:

PHP Code:

getangle(playervecxplayervecy

Instead of:

PHP Code:

getangle(vecx(player.dir), vecy(player.dir)) 


Prozac 07-03-2009 04:32 PM

aha yes thank you! i had to put the gani in quotes, and after it, the image name in quotes.

PHP Code:

"pro-arrow2""barrow0.png" 



All times are GMT +2. The time now is 07:50 AM.

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