• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Right-Click Shooting

Status
Not open for further replies.
Level 4
Joined
Mar 30, 2011
Messages
63
Hi, I need help.
I have a few days trying to make the system of firing the right mouse button does not work there is a system of shells but it does not work when you press on the unit and not on the point of order.http://rghost.ru/79V27P8rF
 
Level 4
Joined
Mar 30, 2011
Messages
63
Please do so in a map unit could shoot even clicking on the unit.
 
Level 5
Joined
Dec 11, 2010
Messages
101
If your trying to make it where you right-click on the unit and you shoot, but cannot shoot if your (Item charges, Mana, whatever it may be your basing off of) are equal to 0, then i have a trigger i'm using for one of my maps that im getting close to finishing.

FireWeapon
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Survivor
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by (Attacking unit) in slot 1)) Equal to 0
Then - Actions
Unit - Order (Attacking unit) to Stop
Else - Actions
Item - Set charges remaining in (Item carried by (Attacking unit) in slot 1) to ((Charges remaining in (Item carried by (Attacking unit) in slot 1)) - 1)

If this isn't what you want, then just ignore this :p
 
Status
Not open for further replies.
Top