HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unlocking game camera?

07-13-2008, 11:53 AM#1
cohadar
How do I unlock camera from a unit? (with triggers)
(without messing other camera properties?)
07-13-2008, 12:31 PM#2
Magentix
Quote:
Originally Posted by cohadar
How do I unlock camera from a unit? (with triggers)
(without messing other camera properties?)

A guess...

By:
Storing all other cam properties with GetCamera<property>
Resetting camera
Applying all stored properties
07-13-2008, 03:49 PM#3
Troll-Brain
Or just pan the camera with GetCameraTargetPosition(loc or coordinate).

Collapse JASS:
function UnlockCameraForPlayer takes player p returns nothing // when will it be inlined xD
    if p== GetLocalPlayer() then
        call PanCameraTo(GetCameraTargetPositionX(),GetCameraTargetPositionY())
    endif
endfunction
07-13-2008, 04:09 PM#4
cohadar
I got it, tnx guys.