Quote:
Shoot inherits basic gani properties. In this case you can just set the graphics in the gani for each direction and they will be set automatically when fired. You can also simplify the script like so:
PHP Code:
if (weaponfired) {
freezeplayer 0.6;
setani shoot,woodenbow1.png;
sleep 0.2;
shoot playerx-0.8,playery+0.5,2,pi/2*playerdir,0,0,eman_woodenarrow,;
}
|
Making the script shorter is cool, but that is not the problem I have, I need to know what the variables in the command "shoot" are, and I need to figure out why is it when I shoot only left, it is transparent, and I need to figure out how to injure npc baddies. Also that script that you said shoots weird, if you shoot left, the arrow up, if you shoot up, the arrow goes right, it goes one direction more clockwise than it should.
(Btw, how do you put a script in a PHP Code box?)