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 07-03-2009, 04:01 PM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
gani and shoot() trouble

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;

Attached Images
 
Attached Files
File Type: gani pro-arrow2.gani (2.4 KB, 138 views)
Reply With Quote
  #2  
Old 07-03-2009, 04:04 PM
Nabru Nabru is offline
100 IFP and runnin'
Nabru's Avatar
Join Date: Aug 2005
Location: Wisconsin
Posts: 440
Nabru will become famous soon enough
Send a message via ICQ to Nabru
have you tried the gani in " " 's?

like you did at "setani("shoot",""); "
__________________
~Urban
Reply With Quote
  #3  
Old 07-03-2009, 04:06 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
he means "pro-arrow2"
Reply With Quote
  #4  
Old 07-03-2009, 04:14 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Prozac View Post
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)) 

Last edited by Gambet; 07-03-2009 at 04:47 PM..
Reply With Quote
  #5  
Old 07-03-2009, 04:32 PM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
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" 
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 01:01 AM.


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