• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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