View Single Post
  #3  
Old 06-18-2012, 11:59 PM
E_Man E_Man is offline
E-Man
E_Man's Avatar
Join Date: Jun 2012
Posts: 81
E_Man will become famous soon enough
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?)
Reply With Quote