Hey, I'm looking to lock the camera onto a unit (I know how to do that) but I want it to stay exactly locked on so that even if the unit walks up a hill he would not go out the camera bounds at top of screen he would just stay centered and normal
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Kamera - Lock camera target for Spieler 1 (Red) to Unit, offset by (0.00, 0.00) using default-rotation
Trigger

Ereignisse


Time - Every 0.10 seconds of game time

Bedingungen

Aktionen


Set Point = (Position of Unit)


Custom script: set udg_Real = GetLocationZ(udg_Point)


Kamera - Set Player 1 (Red)'s camera Distance to Target to (Real + 1650.00) over 0.10 seconds


Custom script: call RemoveLocation udg_point
Custom script: call RemoveLocation udg_Point
// This works
call RemoveLocation( udg_Point)
// This works
call RemoveLocation( udg_Point )
With my system you don't replace anything download the test map the stuff is in GUI there. Read the notes in the JASS script it shows how to use each function in the form of custom script.
