• 🏆 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!

[Solved] AoE range and Group Leaks

Status
Not open for further replies.
Level 6
Joined
Jul 23, 2018
Messages
243
When you are adjusting AoE range, are you adjusting the diameter or the radius of the AoE?
Another one is that when you do
  • Custom script: set bj_wantDestroyGroup = true
and set it after the group usage, does it still destroys the group leak?
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
Can it be used for any action that involves group?
Only BJs (non-"native" functions) that have the mechanic codded into them. This is most GUI actions but I am not sure if it applies to every one.

Triggers can be converted to custom script to see the resulting JASS code they produce. The functions can then be looked up against the Warcraft III built-in script files to see how they are implemented. Functions implemented as "native" are coded by the game engine itself to provide basic functionality. Other functions such as the BJs used by GUI are standard JASS functions. Inside these functions it is possible to see how bj_wantDestroyGroup works.

Here is an example of the function that implements the pick every unit in unit group and do actions action.
JASS:
function ForGroupBJ takes group whichGroup,code callback returns nothing
    local boolean wantDestroy = bj_wantDestroyGroup
    set bj_wantDestroyGroup = false
    call ForGroup(whichGroup, callback)
    if (wantDestroy) then
        call DestroyGroup(whichGroup)
    endif
endfunction
 
Status
Not open for further replies.
Top