1. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  2. The Melee Mapping Contest #4: 2v2 - Results are out! Step by to congratulate the winners!
    Dismiss Notice
  3. We're hosting the 15th Mini-Mapping Contest with YouTuber Abelhawk! The contestants are to create a custom map that uses the hidden content within Warcraft 3 or is inspired by any of the many secrets within the game.
    Dismiss Notice
  4. The 20th iteration of the Terraining Contest is upon us! Join and create exquisite Water Structures for it.
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice

Disable player scroll

Discussion in 'World Editor Help Zone' started by Edy, May 12, 2019.

  1. Edy

    Edy

    Joined:
    Nov 21, 2015
    Messages:
    144
    Resources:
    0
    Resources:
    0
    I have a custom game camera, how do I disable scrolling down, reseting to normal camera.
     
  2. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,104
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
  3. Edy

    Edy

    Joined:
    Nov 21, 2015
    Messages:
    144
    Resources:
    0
    Resources:
    0
    I'm just a GUI only scrublord, I don't know vJass. Any way you can make these via: callcustomscript
     
  4. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,104
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    After you applied your camere position or what ever, as last action put the following custom script:
    • Custom script: call PanCameraToTimed(0x7FFFFFFF, 0x7FFFFFFF, 0x7FFFFFFF)
    ^This is suited if it doesn't matter for player, as it will be applied for all players.

    If it must run for only one player you need the following solution with one player variable:
    • Set Player = Player 1
    • Custom script: PanCameraToTimedForPlayer(udg_Player, 0x7FFFFFFF, 0x7FFFFFFF, 0x7FFFFFFF)
     
  5. Edy

    Edy

    Joined:
    Nov 21, 2015
    Messages:
    144
    Resources:
    0
    Resources:
    0
    All Initialization
    Events
    Map initialization
    Conditions
    Actions
    Sound - Clear the music list
    Sound - Play PH1 <gen>
    Floating Text - Create floating text that reads KEK above Murloc 0014 <gen> with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
    Set FloatingText[1] = (Last created floating text)
    -------- - QUEST SECTION - --------
    Quest - Create a Optional quest titled Credits with the description Created by Edy. ..., using icon path ReplaceableTextures\CommandButtons\BTNMurlocHut1.blp
    -------- - ALL VISION - --------
    Visibility - Disable fog of war
    Visibility - Disable black mask
    Camera - Change camera smoothing factor to 2.00
    Camera - Set the camera bounds for (Player((Integer A))) to Camera Bounds <gen>
    For each (Integer A) from 1 to 6, do (Actions)
    Loop - Actions
    Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across (Entire map)
    Camera - Set the camera bounds for (Player((Integer A))) to Camera Bounds <gen>
    Camera - Apply Game Camera Bamboo <gen> for (Player((Integer A))) over 0.00 seconds
    IIIIIII Custom script: call PanCameraToTimed(0x7FFFFFFF, 0x7FFFFFFF, 0x7FFFFFFF) IIIIIIIII
    -------- - TIME OF DAY - --------
    Game - Set the time of day to 9.00
    Game - Turn the day/night cycle Off


    This is part of my main map init, idk it doesn't work for me. It's ok if it's for all players i don't mind (even for all 24).
     
  6. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,104
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    Have you tried to apply it periodically? Also post map.
     
  7. Edy

    Edy

    Joined:
    Nov 21, 2015
    Messages:
    144
    Resources:
    0
    Resources:
    0
    It stops me now from scrolling via mouse and via insert/delete(PGup,PGdown). I also needed this for one part..
    But for this all I need is to permanetly have a fixed camera distance and an a applied camera object.
     
  8. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,104
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    I thought you want to disable the scrolling, but if you only want to keep distance, then only applying distance/cam periodically should be good enough.
     
  9. Edy

    Edy

    Joined:
    Nov 21, 2015
    Messages:
    144
    Resources:
    0
    Resources:
    0
    It keeps the distance but I still can't disable the insert delete keys (that angle the camera)
     
  10. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,104
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    What?
     
  11. Edy

    Edy

    Joined:
    Nov 21, 2015
    Messages:
    144
    Resources:
    0
    Resources:
    0
    They hotkeys for the camera angle (keys abow the arrows) if you get what I mean xD
     
  12. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    915
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Why do you need to disable it when you just need to keep the distance then?...
    It seems pointless.
     
  13. Edy

    Edy

    Joined:
    Nov 21, 2015
    Messages:
    144
    Resources:
    0
    Resources:
    0
    Is it that weird, I have a small arena, a fixed cam distance and I wan't to disable those controls because of the way the arena is made(It has only doodads no terrain texture whatsoever)
     
  14. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,104
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    Seems you're bing contradictory, see quotes above, hence the question "what"... because all questions how to solve something have been answered already.