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

hi people, 2 little questions

Status
Not open for further replies.
Level 4
Joined
Nov 3, 2009
Messages
28
1: how to fix the scale, transparency, and other properties of the model used in an spell, without resorting to using 3dmax

2: i have trigger at my map to mass move units

  • function Trig_Mass_attack_Conditions takes nothing returns boolean
    • if ( not ( GetSpellAbilityId() == 'A05K' ) ) then
      • return false
    • endif
    • return true
  • endfunction
  • function Trig_Mass_attack_Func001002 takes nothing returns nothing
    • call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetSpellTargetLoc() )
  • endfunction
  • function Trig_Mass_attack_Actions takes nothing returns nothing
    • call ForGroupBJ( GetUnitsInRectOfPlayer(GetEntireMapRect(), GetOwningPlayer(GetTriggerUnit())), function Trig_Mass_attack_Func001002 )
  • endfunction
  • //===========================================================================
  • function InitTrig_Mass_attack takes nothing returns nothing
    • set gg_trg_Mass_attack = CreateTrigger( )
    • call TriggerRegisterAnyUnitEventBJ( gg_trg_Mass_attack, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
    • call TriggerAddCondition( gg_trg_Mass_attack, Condition( function Trig_Mass_attack_Conditions ) )
    • call TriggerAddAction( gg_trg_Mass_attack, function Trig_Mass_attack_Actions )
  • endfunction
but i dunno how to exclude certain types of units of this action, look forward to your advice, thanks in advance
 
Level 4
Joined
Jan 9, 2010
Messages
89
Ok, I'm not a JASS expert, in fact I just recetly learned the basics. I'd try this
JASS:
GetUnitsInRectMatching
instead of this
JASS:
GetUnitsInRectOfPlayer
and then add another condition function.

EDIT: Misread the first question. I don't think it's possible.
 
Status
Not open for further replies.
Top