After many frustrating hours, I finally have a system for my camera that I like. The camera is locked to a single unit and the player can only change the yaw of the camera. However, when scrolling the mouse wheel, the player can zoom in and out, allowing them to see more than I want them to. It also mucks up the angles I set up. The player can also hold down the middle mouse button and move the camera to wherever they like.
This must be stopped!
I don't want to put on "Lock camera input" because this prevents the player from rotating around. I just want to stop them from zooming and panning.
Edit: Just tried locking input by default and unlocking it temporarily when the player tries to look around. This helps a little, but the player can still use the middle mouse functions when looking around.
Edit2: I was able to prevent the player from panning by adding a mess of actions that would lock the player input when the player pressed the middle mouse button by disabling all other triggers dealing with turning the camera. They get turned back on when the player releases the middle mouse button.
If I could just find a way to capture when a player scrolls the mouse button, I'll be all set.
Edit3: Modified the controls so that the angle of attack, distance, and height displacement are constantly reset when the player moves. The player can still zoom in and out if they scroll the mouse button while changing the camera angle. Still looking for some way to capture the mouse scroll.
there's a map on bnet right nwo with a system exactly like what you metion you want. It's called sanctuary RPG or something like that... it's on the second page and it has three heroes, one is a zealot one's a marine and i think the other's a medic. You shoudl be able to contact him for help... but to be honest that type of camera is incredibly frustrating and it actually makes me not want to play a map like that. Camera control is a must if your game runs in a full 3d environment.
It works about 90% of the time. But for some reason while holding the right mouse button, edge scrolling will randomly turn on and the camera will get permanently offset. It doesn't happen often but it does happen. Enough to make it a problem.
Yeah this really frustrated me when I was working on a TPS. You have to go into your data editor and change your data type to cameras and select your default camera object. On your default camera find your zoom levels and just go ahead and delete them all and your scroll wheel will now no longer affect your ingame camera.
Only one small problem left. Right now I have it set so that when the player clicks the middle mouse button, it disables camera input to prevent them from moving the camera around. However if they move the mouse really fast, they can move the camera slightly over and over, just before the trigger is able to disable input. This is a small problem, but it's the last one I have and I'd really like to make this somewhat air-tight.
I don't see anything in that camera that would prevent this (thought setting strafe to 0 would fix it). Am I missing it?
Yeah, you could technically use the data editor to set up your tps/fps camera without using triggers, only thing you would need triggers for is setting the unit for them to follow.
After many frustrating hours, I finally have a system for my camera that I like. The camera is locked to a single unit and the player can only change the yaw of the camera. However, when scrolling the mouse wheel, the player can zoom in and out, allowing them to see more than I want them to. It also mucks up the angles I set up. The player can also hold down the middle mouse button and move the camera to wherever they like.
This must be stopped!
I don't want to put on "Lock camera input" because this prevents the player from rotating around. I just want to stop them from zooming and panning.
Edit: Just tried locking input by default and unlocking it temporarily when the player tries to look around. This helps a little, but the player can still use the middle mouse functions when looking around.
Edit2: I was able to prevent the player from panning by adding a mess of actions that would lock the player input when the player pressed the middle mouse button by disabling all other triggers dealing with turning the camera. They get turned back on when the player releases the middle mouse button.
If I could just find a way to capture when a player scrolls the mouse button, I'll be all set.
Edit3: Modified the controls so that the angle of attack, distance, and height displacement are constantly reset when the player moves. The player can still zoom in and out if they scroll the mouse button while changing the camera angle. Still looking for some way to capture the mouse scroll.
@JTG2003: Go
there's a map on bnet right nwo with a system exactly like what you metion you want. It's called sanctuary RPG or something like that... it's on the second page and it has three heroes, one is a zealot one's a marine and i think the other's a medic. You shoudl be able to contact him for help... but to be honest that type of camera is incredibly frustrating and it actually makes me not want to play a map like that. Camera control is a must if your game runs in a full 3d environment.
@happy04: Go
It works about 90% of the time. But for some reason while holding the right mouse button, edge scrolling will randomly turn on and the camera will get permanently offset. It doesn't happen often but it does happen. Enough to make it a problem.
Yeah this really frustrated me when I was working on a TPS. You have to go into your data editor and change your data type to cameras and select your default camera object. On your default camera find your zoom levels and just go ahead and delete them all and your scroll wheel will now no longer affect your ingame camera.
http://i115.photobucket.com/albums/n309/Lord-Omega/camera.jpg
@ZeroAme: Go
Omg I love you
You're welcome ^-^
@ZeroAme: Go
I got rid of all the zooms, strafes, and scrolls.
Only one small problem left. Right now I have it set so that when the player clicks the middle mouse button, it disables camera input to prevent them from moving the camera around. However if they move the mouse really fast, they can move the camera slightly over and over, just before the trigger is able to disable input. This is a small problem, but it's the last one I have and I'd really like to make this somewhat air-tight.
I don't see anything in that camera that would prevent this (thought setting strafe to 0 would fix it). Am I missing it?
So you can actually set the mouse wheel Zoom levels or something?
This sounds like it has some usefull functionality other then just disabling the mouse wheel changing views
@JTG2003: Go
Im not really sure how you could go about fixing that, sorry.
@SouLCarveRR: Go
Yeah, you could technically use the data editor to set up your tps/fps camera without using triggers, only thing you would need triggers for is setting the unit for them to follow.
What did i miss? I am making a third person game, and whenever i scroll, it resets to normal camera :(
@SgtFailure: Go
Lock Camera input for the player (Camera - Lock Camera Input).
Ehh.... Then i can't look around anymore :P Thanks for trying
its a bug to be fixed by blizzard later. right now the editor very poor support for FPS just wait a few patches see what they make.
I know I'm 2 years late, but Strafe & Forward Scale in the Data Editor of Camera fixes the middle mouse button moving problem.
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.