
06-19-2012, 01:27 AM
|
|
the fake one
|
 |
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
|
|
Quote:
Originally Posted by E_Man
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
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. |
|
|
|