• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to create cam

Status
Not open for further replies.
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Trigger - Add to Tri <gen> the event (Player - Player(IntegerA) selects a unit)
  • Tri
  • Events
  • Conditions
    • (Owner of (Triggering unit)) Equal to (Triggering player)
  • Actions
    • Player Group - Add (Triggering player) to CamGroup
    • Camera - Lock camera target for (Triggering player) to (Triggering unit), offset by (0.00, 0.00) using Default rotation
    • Set Unit[Player number of (Triggering player)] = (Triggering unit)
    • Trigger - Turn on Tri2 <gen>
  • Tri2
  • Events
    • Time - Every 0.05 seconds of game-time
  • Conditions
  • Actions
    • Player Group - Pick every player in CamGroup and do (Actions)
      • Loop - Actions
        • Camera - Set (Picked player)'s camera Rotation to (Facing of Unit[Player number of (Picked player)] over 0.00 seconds
        • Camera - Set (Picked player)'s camera Angle of Attack to 342.28 over 0.00 seconds
There are plenty of GUI/Jass/vJass cam systems already on Hive, but here's a really basic one.
 
Just go to the camera editor, create a camera, and mess with the angle of attack until you find the value you like. :) It is all just like a circle, and the angle is measured in degrees. However, in WE the angles are kind of flipped upside down. What would normally be considered as 90, is 270, and so on.

It is a simple concept, but confusing to explain. You can check out my tutorial about cameras:
  • Angle of Attack - This modifies the angle of viewing. This does not modify the angle from left to right like rotation, but rather from up to down. The range of values is 1-360. 360/0 degrees is directly horizontal, and it parallel to flat ground. As you increase it from 0, it will begin to sink underground and keep changing its angle. At 90 degrees, it will be underground and looking directly upward. At 180 degrees, you'll have an upside down camera that is parallel to flat ground. At 270 it will face directly down at the ground. 304 degrees is the standard game camera AoA. Approximately 345 degrees or so is usually used for RPG-like cameras.
    attachment.php

Source: http://www.hiveworkshop.com/forums/general-mapping-tutorials-278/cameras-160369/
 
Status
Not open for further replies.
Top