1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Right-Click Shooting

Discussion in 'World Editor Help Zone' started by Lkal, Feb 8, 2015.

  1. Lkal

    Lkal

    Joined:
    Mar 30, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    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
     
  2. rulerofiron99

    rulerofiron99

    Joined:
    Jul 10, 2006
    Messages:
    3,129
    Resources:
    14
    Maps:
    4
    Spells:
    9
    Tutorials:
    1
    Resources:
    14
    if (target of issued order) equal to (no unit)
    then set temp_target_point = (target point of order)
    else set temp_target_point = (position of (target unit of order))
     
  3. LordDz

    LordDz

    Joined:
    May 11, 2007
    Messages:
    4,303
    Resources:
    0
    Resources:
    0
  4. Lkal

    Lkal

    Joined:
    Mar 30, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    Please do so in a map unit could shoot even clicking on the unit.
     
  5. Impereal Gardian

    Impereal Gardian

    Joined:
    Dec 11, 2010
    Messages:
    100
    Resources:
    0
    Resources:
    0
    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