Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Shoot; (https://forums.graalonline.com/forums/showthread.php?t=33374)

Jman9912-P2P 07-13-2002 01:12 AM

Shoot;
 
How do you use the shoot command? i mean i tried but it is confusing me.

Python523 07-13-2002 01:22 AM

read the newfeatures2002.txt till you understand it, its not that hard, everything part of the command is explained in it

Jman9912-P2P 07-13-2002 01:23 AM

well...i read it but i dont get it i left graal for a little bit and i am coming back lol i just dont get like the z parts and all i know it means like up and down, but does it shoot the image you are using? or the image attribute of the npc? or what

Python523 07-13-2002 01:34 AM

shoot uses ganis, not images
and z is the height, just put it as playerz or 0 since if you are not using a terrain, you have no need to make it anything else

Jman9912-P2P 07-13-2002 01:50 AM

*confused abou the gani part* sry lol ok so i would make it show how he would look when he shoots then add a sprite and make it a parameter and whatever that sprite was it would shoot?

Echos 07-13-2002 04:42 AM

lmao, Python, Jman9912 was on The Portal at one point.

Python523 07-13-2002 04:48 AM

Quote:

Originally posted by Echos
lmao, Python, Jman9912 was on The Portal at one point.
whoa, the portal was like 2 years ago @_@

Jman9912-P2P 07-13-2002 04:55 AM

lol yea i waz on portal i was like one of the high admin's and stuff, but this script confuses me for some reason...

Echos 07-13-2002 05:07 AM

Quote:

Originally posted by Python523

whoa, the portal was like 2 years ago @_@

Somewhere around there ;)

But I still remember just about everyone.

Jman9912-P2P 07-14-2002 12:58 AM

lol but can anyone help me here?

Torankusu 07-14-2002 01:08 AM

Quote:

- new script command 'shoot' for shooting projectiles:
shoot x,y,z,angle,zangle,power,gani,ganiparams;
x,y and z - specify the starting position
angle - shoot angle (when looking from the top): east is 0,
north 3.14/2, west is 3.14, south 3.14*3/2)
zangle - the angle in vertical direction, 0 means the
projectile is shoot horizontal, 3.14/2 means straight to the
sun
power - the shoot power which is used to shoot the projectile;
if it's 0 then the projectile is shoot like an old arrow
(doesn't fall down, moves 20 tiles each second)
gani - the animation that is used for the projectile; the
animation can be multidirectional, the engine automatically
selects the best direction for the flying direction; the
animation can have 1 step (not animated) or 7 steps, then the
engine is automatically choosing the good animation step for
the projectile flying angle - when its raising then step 1 is
taken, when flying horizontal it is step 4, when it is short before
the impact then the engine displays step 7
When the projectile is landing or hitting an object then some actions
are triggered. With the command 'setshootparams <params>;' you can set
the parameters that the called scripts get, call 'setshootparams' before
shooting the projectile.
shoot x,y,z,angle,zangle,power,gani,ganiparams;


All times are GMT +2. The time now is 09:45 PM.

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