Projectile and Boundaries

l1lshadow

New Member
Reaction score
4
Hey, I am making a projectile system. How do I make it so that the projectile gets destroyed when it hits a boundary? OR how do I make it so that it reflects when it hits the boundary? (the system is in vJass just so you know =] )
 

l1lshadow

New Member
Reaction score
4
Ehh, I appreciate your help but I'm kinda building my own system and I'm learning to code vJass so I would like some help on this.
 

PrisonLove

Hard Realist
Reaction score
78
You can use the [ljass]GetTerrainHeight(x2, y2) <= GetTerrainHeight(x,y)[/ljass] (that may not be the proper function, but it's something like that) comparison to detect whether the height at (x2, y2) is greater than the height at your projectile's current position. If it is, destroy the projectile. It's very crude, but it may work.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top