HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Player is Forced to Select, But can't Pan Camera

12-10-2008, 09:12 PM#1
Joker
How do you force a player to select a unit, but the player is not able to pan their camera on that unit?
12-10-2008, 10:06 PM#2
Ammorth
With triggers via Set Camera Target Controller (gui) or SetCameraTarget (jass).

To select, just use Select Unit For Player in a periodic trigger.
12-10-2008, 10:20 PM#3
Joker
Collapse JASS:
native SetCameraTargetController takes unit whichUnit, real xoffset, real yoffset, boolean inheritOrientation returns nothing
What is that?
12-10-2008, 10:30 PM#4
Kwah
Will it keep the same angle from before, ie: if the camera is looking in at a point from the outside of a circle from 50 degrees, will it reset to zero or not.

That's just my guess.
12-11-2008, 12:35 AM#5
Ammorth
I believe it doesn't work as intended (or atleast how I would think it should work). Just set it to false.
12-11-2008, 01:16 PM#6
Monstah
Are you talking about inheritOrientation? Never worked for me either, but you can call

Collapse JASS:
call SetCameraField(CAMERA_FIELD_ROTATION, GetUnitFacing(your_unit_here))

Or something like that.