How can you do these 3 things?

Status
Not open for further replies.
1) How can you disable mouse walking? So when unit is issued an order by using ARROW KEYS he will move but when he is issued order with a mouse he can't.

2) If you have a first person view camera. When unit walks (For example) over a bridge then while unit moves up higher the camera stays on the same level and so while unit is high up on a bridge, the camera is underneath the bridge (Same with cliffs). Is it possible for the camera to see how high the unit is from the ground?

3) Only key events you have is Key arrows and Escape. Is it possible to make keybord event that when someone presses for example "R" something is going to happen?


If you know an answer to at least one of these quastions, please post. I don't mind if JASS is the only way to solve the problems above. Thanks you in advance.
 
Level 14
Joined
Nov 25, 2004
Messages
1,185
1) How can you disable mouse walking? So when unit is issued an order by using ARROW KEYS he will move but when he is issued order with a mouse he can't.
Try disabling the Move ability (in jass ;/). Or make your unit unselectable (Locust).

2) If you have a first person view camera. When unit walks (For example) over a bridge then while unit moves up higher the camera stays on the same level and so while unit is high up on a bridge, the camera is underneath the bridge (Same with cliffs). Is it possible for the camera to see how high the unit is from the ground?
I don't think so. :/

3) Only key events you have is Key arrows and Escape. Is it possible to make keybord event that when someone presses for example "R" something is going to happen?
Yes, of course. You just link them to ability with no effect (dummy). Make ability based off Thunder Clap, area of effect 0, mana cost 0 etc. Set hotkey to "R". And every time someone presses R you can make triggers for this ability.


If you know an answer to at least one of these quastions, please post. I don't mind if JASS is the only way to solve the problems above. Thanks you in advance.
No problem :roll:
 
Status
Not open for further replies.
Top