View Single Post
  #6  
Old 06-19-2012, 01:27 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by E_Man View Post
Can you give me an example line that uses "shoot because that is kind of confusing. I mainly don't get the variables of : z, angle, zangle, and ganiparams. Also I still don't know how to use setshootparams or how to call it, and setshootparams is to do damage, right?
GS2 example of the shoot command:

Quote:
Originally Posted by cbk1994 View Post
PHP Code:
temp.x = player.x + (vecx(player.dir) * 1.5);
temp.y = player.y + (vecy(player.dir) * 2);
temp.z = 0;

temp.angle = (player.dir + 1) * (pi / 2);
temp.zangle = 0;
temp.power = 0;

temp.ani = "sword";
temp.aniParam = "";
shoot(x, y, z, angle, zangle, power, ani, aniParam); 
Remove the parentheses and a couple other GS2 bits and you're good to go.
__________________
Reply With Quote