• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Grouping

Status
Not open for further replies.
Level 3
Joined
Sep 30, 2004
Messages
16
Is it possible that you make a trig where u assign the 1 button on the key board to a unit group so that when u press it again you automatically select a unit, even if you hadn't previously clicked that unit and pressed ctrl+1????
 
Level 12
Joined
Apr 29, 2005
Messages
999
The only keys that can be detected by events is the arrow keys so it is not possible. Otherwise it would be possible if you save a uniot group or a unit in a variable and then use the "Selection - Select (Last created unit group) for Player 1 (Red)" or "Selection - Select (Triggering unit) for Player 1 (Red)". (The vaules are just examples.)
 
Status
Not open for further replies.
Top