• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] globals and size definition

Status
Not open for further replies.
Level 11
Joined
Apr 6, 2008
Messages
760
Anyone know a fix for this? Count cant be used to define the array size and if i wrap it in R2I() it will become an integer but wont be able to use it 'Wrong [Size] definition'

JASS:
globals
    private constant real Ang = (bj_PI*2/360)*Angle
    private constant integer Count = 360/(Ang*57.29577951308232)
endglobals

struct
unit array units[Count]
endstruct

EDIT:

Solved it

JASS:
360/R2I((Ang*57.29577951308232))
 
Status
Not open for further replies.
Top