Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

[SOLVED] How to cast a spell, considering the user's key configuration

cast spell user key customization

Best Answer Toshibiotro , 11 February 2017 - 10:58

Imagine the user set his Q to be cast by pressing Z. I have no idea what key casts what. The user could have his keyboard all backwards as far as know. Do I still use this to cast Q onto unit?

 

Control.CastSpell(HK_Q, unit)

 

Or do I need to detect the users keys first, somehow?

HK_Q stands for Hotkey for Q, they should have all their hotkeys configured in the menu, its fine

Go to the full post »


  • Please log in to reply
2 replies to this topic

#1
MonkeyKid

MonkeyKid

    Advanced Member

  • Members
  • 112 posts
  • LocationBrazil

Imagine the user set his Q to be cast by pressing Z. I have no idea what key casts what. The user could have his keyboard all backwards as far as know. Do I still use this to cast Q onto unit?

 

Control.CastSpell(HK_Q, unit)

 

Or do I need to detect the users keys first, somehow?


  • 0

#2
Toshibiotro

Toshibiotro

    Lord and Saviour of GoS

  • Banned
  • PipPipPip
  • 957 posts
  • LocationThe Moon
✓  Best Answer

Imagine the user set his Q to be cast by pressing Z. I have no idea what key casts what. The user could have his keyboard all backwards as far as know. Do I still use this to cast Q onto unit?

 

Control.CastSpell(HK_Q, unit)

 

Or do I need to detect the users keys first, somehow?

HK_Q stands for Hotkey for Q, they should have all their hotkeys configured in the menu, its fine


  • 1

#3
MonkeyKid

MonkeyKid

    Advanced Member

  • Members
  • 112 posts
  • LocationBrazil

HK_Q stands for Hotkey for Q, they should have all their hotkeys configured in the menu, its fine

Thanks


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users