View Single Post
  #7  
Old 08-13-2010, 08:07 PM
khortez khortez is offline
PrototypeX
khortez's Avatar
Join Date: Dec 2008
Posts: 91
khortez will become famous soon enough
Quote:
Originally Posted by Switch View Post
testplayer(x, y)
Or you could use the built-in shoot() or my custom projectile system.

getangle(vecx, vecy) gets the angle from the vecx and vecy in radian form. You can use radtodeg(angle) to get it to degree form.
By the way, 90 (deg) is pi*0.5 (rad), 180 is pi, 270 is pi*1.5, 360 is pi*2 which is also 0.
Thanks, ill give it a shot and see what happens,

also I'm already using shoot() but i didnt know i could make it to hurt a player once it reaches a object. I am trying setshootparams() though
Reply With Quote