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

Pausing all units of a player

Status
Not open for further replies.
Level 3
Joined
Oct 20, 2017
Messages
52
Hello, sorry for my bad English, but I am having difficulties with a trigger that may be something very obvious or not, but to the point: I want to create a trigger that can pause all units of a player in a short period of time, but I am not getting this, because instead I am pausing all the players that are in the game, someone help me; -;
 
I have one suggestion:

to make a variable unit group and store the units in it and after pausing then to destroy it

set PlayersUnits = all units owned by playerX
pick all units in PlayersUnits and pause (picked unit)
call DestroyGroup(udg_PlayersUnits)


The usual routine that all spell reviewers want, so that there are no leaks and your spell gets approved.
 

Wrda

Spell Reviewer
Level 26
Joined
Nov 18, 2012
Messages
1,906
I have one suggestion:

to make a variable unit group and store the units in it and after pausing then to destroy it

set PlayersUnits = all units owned by playerX
pick all units in PlayersUnits and pause (picked unit)
call DestroyGroup(udg_PlayersUnits)


The usual routine that all spell reviewers want, so that there are no leaks and your spell gets approved.
Do they have bias over bj_wantDestroyGroup? :p
 
Status
Not open for further replies.
Top