| 08-21-2006, 02:55 PM | #1 |
I had an idea for a game I might make with warcraft. The camera xyz properties are locked over a moveable unit's head, and the mouse controls where the camera is pointing. I have no idea how to do this though, but it would be cool if somebody gave me a hand in figuring it out ![]() |
| 08-21-2006, 04:20 PM | #2 |
Sorry, not possible. (unless you wanna try trackable, but that would also rather quickly fail. |
| 08-21-2006, 06:06 PM | #3 |
It is possible with the use of 3rd party programs, Have you checked out the FPS mod yet??? it's on this site. |
| 08-21-2006, 06:15 PM | #4 |
Err Im pretty sure it is possible even without 3rd party programs, or maybe I'm not understanding what you want. |
| 08-21-2006, 06:31 PM | #5 |
http://wc3campaigns.net/forumdisplay.php?f=596 Just a warning though. The process is rather involved, so unless you're prepared for quite a bit of work I wouldn't bother. Additionally, I'm trying to work with xttocs on getting the 3rd party program out of the picture and instead use new natives to handle the mouse control. I'll post an update as soon as I actually get a chance to talk with tocs. |
| 08-23-2006, 02:53 AM | #6 |
Alright, I made my own simple version of it and instead of FPS view it's more like... from over the head of the character. I like it, it's pefect. Only one problem: how do I disable the Delete and Insert keys from the keyboard? |
| 08-23-2006, 04:06 AM | #7 |
Not sure you can, I think it's built into the engine. But if you're updating the camera every second or whatnot you shouldn't have a problem because any time the user hits delete or insert the camera will just instantly reset back to your view. |
| 08-23-2006, 04:32 AM | #8 |
The only thing I'm updating constantly is the rotation of the camera. If I make it re-apply the view it spins around and stuff. And since you're reading this, I'm having trouble adjusting the height of the camera using your tutorial. There's an error somewhere and I can't find it |
| 08-23-2006, 08:54 PM | #9 |
What exactly isn't working, how much did you implement, and what is the error? Can you pastebin/paste here your code? |
| 08-23-2006, 08:57 PM | #10 |
this is the line of code I used: call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_ZOFFSET, GetCameraField( CAMERA_FIELD_ZOFFSET ) + ( GetLocationZ(GetUnitLoc(gg_unit_hfoo_0000)) + 150 - GetCameraEyePositionZ() ), udg_CamInterval ) In the error message it tells me that it expects some sort of name, but it doesn't say more. Is there a way to form this using actions rather than a custom script? |
| 08-24-2006, 03:22 AM | #11 |
udg_CamInterval is a global that I used to identify how quickly the camera moved. That global probably doesn't exist in your map, replace it with a time value for how quickly the camera moves to that height. |
| 08-24-2006, 03:42 AM | #12 |
Aaahahah I didn't even notice that it was in there! I read the tutorial but I was like "ein? where is this?" so I copied it hoping it'd work, changeing the unit type. Can you uhm... just quickly tell me how to set it to a time? ![]() |
| 08-24-2006, 04:22 AM | #13 |
Just replace udg_CamInterval with how many seconds you want it to take to adjust the camera. Ussualy I set it to exactly equal to how long my periodic timer is. |
| 08-24-2006, 04:42 AM | #14 |
IT WORKS OMG THANKS I'm still faced with the Delete Insert bug. This new heigth tracking function makes it worse in a way that's hard to describe |
| 08-24-2006, 05:02 AM | #15 |
Oh wait I got it. I added a few actions to my trigger, they find the original Field of View, Distance and Angle of attack and automatically re-apply them constantly, so if you press one of those keys it only shakes around a lot then comes back to normal right away |
