Staredit Network > Forums > SC2 Assistance > Topic: Lock Camera
Lock Camera
Jan 7 2011, 6:56 am
By: payne  

Jan 7 2011, 6:56 am payne Post #1

:payne:

Are there any ways to prevent a player from zooming out (scrolling out) when a camera is applied?
Something else than "Lock Camera Input" because it completely ruins the purpose of a 3rd person view (which allows you to rotate your mouse).



None.

Jan 7 2011, 4:13 pm Roy Post #2

An artist's depiction of an Extended Unit Death

This has been a problem since World Editor. At least SC2 doesn't reset to the default game camera when you hit delete/insert.

Here's a primitive way to solve the problem, because I don't expect Blizzard to have one directly. You can use the "Trigger - Turn Trigger On/Off" action to toggle the lock on the camera if you use this trigger:

LockCamera
    Events
        Timer - Every 0.05 seconds of Game Time
    Local Variables
    Conditions
    Actions
        Camera - Apply MyThirdPersonCamera for player 1 over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Don't Include Target


I think the method of applying a camera is "smart" application, like smart panning, where it won't actually run the action if the camera is already properly applied for the player.




Jan 7 2011, 4:33 pm Ahli Post #3

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

I think you can edit the zooming limits in the data editor under "game data", if you want to disable that.




Jan 7 2011, 6:19 pm payne Post #4

:payne:

Quote from Roy
This has been a problem since World Editor. At least SC2 doesn't reset to the default game camera when you hit delete/insert.

Here's a primitive way to solve the problem, because I don't expect Blizzard to have one directly. You can use the "Trigger - Turn Trigger On/Off" action to toggle the lock on the camera if you use this trigger:

LockCamera
    Events
        Timer - Every 0.05 seconds of Game Time
    Local Variables
    Conditions
    Actions
        Camera - Apply MyThirdPersonCamera for player 1 over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Don't Include Target


I think the method of applying a camera is "smart" application, like smart panning, where it won't actually run the action if the camera is already properly applied for the player.
I had already tried this, and it prevents the player from rotating the camera because X and Y target are set values.
What I currently have is a "Set distance of camera for player" running periodically. :/

Quote from Ahli
I think you can edit the zooming limits in the data editor under "game data", if you want to disable that.
I went into "Cameras", and changed the "Default Camera" fields related to Distance respectively to 0, 7.5 and 7.5
I'm not quite sure if it worked, but it looks like it. And in any case, I just decided to let players type "-fix" to re-apply the camera properties. :P



None.

Jan 8 2011, 12:45 pm LooKe Post #5



Quote from payne
Quote from Roy
This has been a problem since World Editor. At least SC2 doesn't reset to the default game camera when you hit delete/insert.

Here's a primitive way to solve the problem, because I don't expect Blizzard to have one directly. You can use the "Trigger - Turn Trigger On/Off" action to toggle the lock on the camera if you use this trigger:

LockCamera
    Events
        Timer - Every 0.05 seconds of Game Time
    Local Variables
    Conditions
    Actions
        Camera - Apply MyThirdPersonCamera for player 1 over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Don't Include Target


I think the method of applying a camera is "smart" application, like smart panning, where it won't actually run the action if the camera is already properly applied for the player.
I had already tried this, and it prevents the player from rotating the camera because X and Y target are set values.
What I currently have is a "Set distance of camera for player" running periodically. :/

Quote from Ahli
I think you can edit the zooming limits in the data editor under "game data", if you want to disable that.
I went into "Cameras", and changed the "Default Camera" fields related to Distance respectively to 0, 7.5 and 7.5
I'm not quite sure if it worked, but it looks like it. And in any case, I just decided to let players type "-fix" to re-apply the camera properties. :P

I think it's in this video that it explains how to stop the camera from jumping inside of a cliff wall (like your map does or did before you fixed I'm unsure) http://www.youtube.com/watch?v=GE0s2d7zXTc



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
[2026-7-23. : 1:40 am]
Oh_Man -- and no consistent easy to use way to then play the audio either
[2026-7-23. : 1:39 am]
Oh_Man -- where they use third party audioprogram called WWISE which basically makes adding audio extremely difficult
[2026-7-23. : 1:39 am]
Oh_Man -- i appreciate SCBW's ability to just let us upload and play WAVs so much compared to nightmare that is total war warhammer 3
[2026-7-18. : 2:27 am]
Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
[2026-7-17. : 2:58 pm]
Ultraviolet -- Symmetry
Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
fr fr
[2026-7-17. : 2:39 am]
Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
[2026-7-16. : 6:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
Please log in to shout.


Members Online: NudeRaider, Mithras Gnosis, Symmetry