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

[Trigger] Trigger causes desync

Status
Not open for further replies.
Apparently this part of the trigger causes players to be dropped from the game.

  • Set tempunitgroup = (Units in (Playable Map Area) matching ((Matching unit) is selected by (Owner of naaru) Equal to True))
  • Selection - Select naaru for (Owner of naaru)
  • Unit Group - Pick every unit in tempunitgroup and do (Selection - Select (Picked unit) for (Owner of naaru))
  • Custom script: call DestroyGroup( udg_tempunitgroup )
The purpose of this trigger is to select the Naaru for the player after this ability is used and then add all other units that were previously selected to the selection. (like using TAB to switch to the naaru)

Just changed the code to:

  • Set tempunitgroup = (Units in currently selected by (Owner of naaru))
  • Selection - Select naaru for (Owner of naaru)
  • Selection - Select tempunitgroup for (Owner of naaru)
  • Custom script: call DestroyGroup( udg_tempunitgroup )
Didnt change nothing.

Help please.
 
pick units of matching unit type of "naaru" instead cause you are setting a unit group that dont exist as you select it AFTER you've set the group, either move the select line above or change which is better

no, the group exists, it is just reselected.
it was the select unit group for player function. apparently, this function just doesnt work. i made a loop, that adds all units to the selection of the player one after the other and it works.
 
Status
Not open for further replies.
Top