1. #1
    Pit Lord shade3891's Avatar
    15+ Year Old Account
    Join Date
    Oct 2008
    Location
    Boat to the Dragon Ilses
    Posts
    2,307

    Weakaura that scales up and down

    Is it posible to scale a weakaura based on my current camera zoom level?

    I would like to make the weakaura smaller when zoomed out.

  2. #2
    Use the number returned from GetCameraZoom(). Keep in mind that it doesn't account for environment collisions, so if you're zoomed all the way out but inside a small house, your weakaura will be small.
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

  3. #3
    Pit Lord shade3891's Avatar
    15+ Year Old Account
    Join Date
    Oct 2008
    Location
    Boat to the Dragon Ilses
    Posts
    2,307
    Got it working!

    Used:

    Duration 0
    Custom Zoom Function
    Code:
    function(progress, startX, startY, scaleX, scaleY)
        local zoom = GetCameraZoom()
        
        return startX - ((zoom /50 * 1.5)) +0.5, startY - ((zoom /50 * 1.5))+0.5
    end
    Last edited by shade3891; 2018-03-24 at 12:38 PM.

  4. #4
    Brewmaster Thundertom's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    The Netherlands
    Posts
    1,319
    Impressive!
    Warlock (SL main)

  5. #5
    Quote Originally Posted by shade3891 View Post
    Got it working!

    Used:

    Duration 0
    Custom Zoom Function
    Code:
    function(progress, startX, startY, scaleX, scaleY)
        local zoom = GetCameraZoom()
        
        return startX - ((zoom /50 * 1.5)) +0.5, startY - ((zoom /50 * 1.5))+0.5
    end
    I've created a static texture that would scale according to camera zoom. I am currently wanting to implement the same concept to a texture yet I do not know what page to enter this code into, ie CONDITIONS, TRIGGER, so on. Any help would be greatly appreciated.

  6. #6
    Pit Lord shade3891's Avatar
    15+ Year Old Account
    Join Date
    Oct 2008
    Location
    Boat to the Dragon Ilses
    Posts
    2,307
    Quote Originally Posted by Ikin View Post
    I've created a static texture that would scale according to camera zoom. I am currently wanting to implement the same concept to a texture yet I do not know what page to enter this code into, ie CONDITIONS, TRIGGER, so on. Any help would be greatly appreciated.
    Animation tab

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •