
07-14-2002, 01:08 AM
|
Elite Member
|
 |
Join Date: Jun 2001
Posts: 10,065
|
|
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; |
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
|
|
|
|