System GetShapePoint

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
Is it possible to detect units within the shape?
As far as i thought of it you should be able to check for each shape if a unit is inside it - if you need help about it just ask.
thx very much :)
i need this system but if is GUI i think will easy than jass :D
if i would have made it in GUI it would have been less efficient to use and more complexed
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
715
You should use reals instead of locations.

And, if at all, do some location-taking wrapper functions for GUI users.


Anyway, the system feels kind of robust and doesn't have that much diversity when it comes to creating different shapes.

You should follow what Darthfett said.


In addition, if you can, use the features of vJASS. All these functions can be merged into something similar like the following:

JASS:
struct shape
    real x
    real y
    real radius
    integer tips
    
    method polygon takes real x, real y, real radius, integer tips returns shape
    endmethod
endstruct



I'll graveyard this system for now.

Not that it's bad, but it just lacks options and the same effect can be reached with a lot less of coding.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
^ as far as for diversity i think it has a lot but you just don't see through your options,if you want, give me any type of symmetrical shape you want and i shall do it with my system.

as for the rest i shall update them with vJass and other additions
 
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