Camera help please

Status
Not open for further replies.
Level 5
Joined
Dec 6, 2009
Messages
90
i gots gay camera height, can someone tell me how to vertically offset it so that when the unit goes over a hill, the camera stays the same distance from the unit..
 

Attachments

  • gay camera.JPG
    gay camera.JPG
    72.7 KB · Views: 94
  • norm camera.JPG
    norm camera.JPG
    95.9 KB · Views: 70
Does this even work very well? It seems like it would have some serious problems in certain situations.

It could have trouble in maybe maps with roofs and maybe ones with several cliffs, but I am not sure what else it'd have trouble with... :\ Or at least not serious trouble. But I've only tested it a few times, and they were in testing maps so obviously the terrain wasn't very made-for-all-situations so I am not sure. =P

im sorry, but the 'custom scrips' are confusing me....

whats udg?, do i just type it in or do i have to find a function?

also, do i just place that in my camera tracking system or do i need to make a new trigger....

udg_ is a prefix in JASS to denote trigger editor global variables. (ones made in the variable editor) Open the variable editor (CTRL+B) and then create one real variable named "Zoffset" and one point variable named "Point1" for that trigger. But you can also change it around if you want, eg:
  • Set PointVariableName = (Position of (your unit))
  • Custom script: set udg_RealVariableName = GetLocationZ(udg_PointVariableName)
  • Camera - Set camera height offset to (200.00 + (RealVariableName))
  • Custom script: call RemoveLocation (udg_PointVariableName)
Just replace "PointVariableName" with the name of your point variable you want to use and then replace "RealVariableName" with the name of the real variable you want to use.

You can place that in your camera tracking system. Just replace the position with whatever you want.
 
this is just too confusing, if anyone can make a map with that trigger, please send it to me (your name goes on credits of course) if not, ill just try to manipulate the distance,aoa,and stuff..... thanks for the help y'all, but this is just taking too much of my time :(
Take this advice, then: stop editing warcraft 3, because you'll never go anywhere with such an attitude.

Buy starcraft 2 when it comes out and use their editor. You'll find it more up your alley. If not, then take up a new hobby.
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
We're here to help you, not do it for you. The explanations provided in this thread should be easily enough to get you in the right direction, but from the sound of it you don't even want us to help you, you just want us to do it for you.

PurgeandFire111 said:
  • Set PointVariableName = (Position of (your unit))
  • Custom script: set udg_RealVariableName = GetLocationZ(udg_PointVariableName)
  • Camera - Set camera height offset to (200.00 + (RealVariableName))
  • Custom script: call RemoveLocation (udg_PointVariableName)
Just replace "PointVariableName" with the name of your point variable you want to use and then replace "RealVariableName" with the name of the real variable you want to use.

He has already done it for you here, the only thing left for you to do is replicate what he has posted. If you can't do that then I'm sorry this is not the right thing for you. Perhaps you should look into modding real-life checkers games.
 
Level 5
Joined
Dec 6, 2009
Messages
90
ok, i did try.. twice. and im sorry if i sound annoying and pissy but i really enjoy making maps, and when i get to a problem that takes me more than an hour to figure out, i get frustrated.... i was trying to make an acceptable map in as little time as possible.

since that would be my first map, i was going for something really awesome, and i dont want you guys to think im some lazy brat-kid who doesnt do any work, i try. its just that as much as i love this game and editor, theres other things for me to do, not just sit at home and try to figure out an effin trigger for 3 hours and not get anywhere....
 
Status
Not open for further replies.
Top