• 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.

Spell/Trigger issue

Status
Not open for further replies.
Level 7
Joined
Sep 19, 2007
Messages
81
Is there any spells that are activated as long as u hold down the hot key?
  • Events
  • Unit - Mortar Team 0016 <gen> Begins casting an ability
  • Trackable Object - (Create trackable object using Doodads\Cintematic\ElevatorPuzzle\ElevatorPuzzle.mdl at Location (-373.00,412.00) facing 0.00) is clicked
  • Conditions
  • Ability being cast) Equal to (==) Left (name of spell)
  • Actions
  • Player - Add 1000 to Player 1 (Red) Current Gold
Now the only way for it to work is for me to click them simutaniously but i want it so i can have the ability (hotkey z) always on when im holding down z. so i could say gold down z for 4 seconds then click on trackable object and ill still get the gold. Any help well be much appreciated
 
Level 9
Joined
Apr 3, 2008
Messages
700
It's rather easy.
You need 2 triggers.
One will have event
  • Events
    • Player - Player Presses the Left Arrow key
And another one
  • Events
    • Player - Player Releases the Left Arrow key
You can make a global array variable and change it's value each 0.1 sec. after player will press button (turn on/off triggers)
 
Status
Not open for further replies.
Top