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!
Hey is it possible to make a smartcast trigger? like, if i hold down shift and then press the keybinding of my custom abillity i will cast it instantly if aimed at selectable target? like smartcast in league of legends. thank you!
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Set pressed = True
released
Events
Player - Player 1 (Red) Releases the Left Arrow key
Conditions
Actions
Set pressed = False
Spell
Events
Unit - A unit Begins channeling an ability
Conditions
pressed Equal to True
Actions
Unit - Order (Triggering unit) to Stop
-------- Do spell here! --------
Don't know how to change from arrow press to shift, perhaps esc will do... Don't know if your spell can use this workaround, but to give you an idea perhaps?
Don't know how to change from arrow press to shift, perhaps esc will do... Don't know if your spell can use this workaround, but to give you an idea perhaps?
The problem is that you need to detect the player's mouse position when the ability is cast. If you were to somehow do this (I think it was possible with Reinventing the Craft), it would also mean that you must choose between smartcast always on and always off.
Trackable can do that I guess. A map covered with trackables and abilities that requires no target that work as dummy spells with hotkeys. When used you detect the position of the mouse via trackable then detect what spell was used and then do its effect. But a system like that will be very complicated and will require lots of math calculations.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.