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

Keypress and tracables

Status
Not open for further replies.
Level 7
Joined
Nov 19, 2015
Messages
283
Hi everyone
I was reading about tracking key press and mouse positions. This is were I read about them:

http://www.hiveworkshop.com/forums/triggers-scripts-269/rtc-keycodes-162988/
http://www.hiveworkshop.com/forums/triggers-scripts-269/retrieve-cursor-position-165744/
http://www.thehelper.net/threads/trackmapsystem.121858/

Just wondering if someone can clarify the key press and whether it is possible to detect when a player presses a key. Also what is this reinventing the craft thingy?

Also for the trackables, do normal units have this trackable staus. Is it possible to detect when a player hovers a mouse over a unit?
 
Hi everyone
I was reading about tracking key press and mouse positions. This is were I read about them:

http://www.hiveworkshop.com/forums/triggers-scripts-269/rtc-keycodes-162988/
http://www.hiveworkshop.com/forums/triggers-scripts-269/retrieve-cursor-position-165744/
http://www.thehelper.net/threads/trackmapsystem.121858/

Just wondering if someone can clarify the key press and whether it is possible to detect when a player presses a key. Also what is this reinventing the craft thingy?

Also for the trackables, do normal units have this trackable staus. Is it possible to detect when a player hovers a mouse over a unit?

If I recall correctly, the RtC implementation was something like "IsKeyDown()", so you would have to periodically check for each player. The issue is syncing. You'll still end up with pretty reasonable delays on battle.net with it. But it is fine for single-player, but the player still has to download the mod to get that functionality (although, as others have mentioned, you should use SharpCraft instead).

As for trackables, they are pretty limited. When you create one, it creates a model in the game (similar to a unit) and you can detect when a player clicks on it or hovers over it. But you can't move it or even destroy it. That's why it is usually used for full-screen systems, signs, etc. There isn't a way to detect when a unit is hovered over, sadly.
 
Status
Not open for further replies.
Top