Triggers/Category Camera

From SC2Mapster Wiki
Jump to: navigation, search

Basic[edit | edit source]

Apply Camera Object[edit | edit source]

  • Action. Sets a players camera to a camera object. If you choose to Include Target, then the specified player's camera will also jump to the target point of the specified camera object. Otherwise, only the camera object's properties will be applied to the specified player's camera.

Clear Camera Channel On Portrait[edit | edit source]

  • Action. Stops a portrait from rendering to a render-to-texture channel.

Camera Pitch of Player[edit | edit source]

  • Function. Returns the current camera pitch of a player. Camera pitch is tracked for all players in a multiplayer game, but the queried locations will be slightly old due to network latency.

Camera Target Of Player[edit | edit source]

  • Function. Returns the current camera target of a player. Camera targets are tracked for all players in a multiplayer game, but the queried locations will be slightly old due to network latency.

Camera Yaw of Player[edit | edit source]

  • Function. Returns the current camera yaw of a player. Camera yaw is tracked for all players in a multiplayer game, but the queried locations will be slightly old due to network latency.

Default Game Camera[edit | edit source]

  • Function. Returns the default game camera settings.

Make Camera Look At[edit | edit source]

  • Action. Adjusts the camera to look at the new target point without changing the camera eye position.

Pan Camera[edit | edit source]

  • Action. Pans the camera to the center of a region or point. If smart panning is enabled, the camera will not pan if it is already looking at the target point.

Restore Camera[edit | edit source]

  • Action. Restores the camera to a previously saved configuration. You can save camera settings using "Save Camera".

Save Camera[edit | edit source]

  • Action. Saves the current camera configurations. You can recall the camera settings using "Restore Camera".

Set Camera Channel On Portrait[edit | edit source]

  • Action. In order to use this, you must first create a portrait through triggers. You can then use this action to have a camera object on that portrait render to a render-to-texture channel.

Camera Tricks[edit | edit source]

Follow Unit Group with Camera[edit | edit source]

  • Action. Follows a unit group with the camera.

Lock Camera Mouse Relative Mode On/Off[edit | edit source]

  • Action. When this is turned on, it will make all of a player's mouse movements act as if that player was drag-scrolling (holding down the middle mouse button). This will hide the mouse cursor. Use in conjunction with "Turn Camera Mouse Rotation On/Off" to make an FPS-style camera.

Lock Camera Input[edit | edit source]

  • Action. Locks the camera in place for a player, causing the player to be unable to move the camera in any way.

Make Camera Look At And Follow Actor[edit | edit source]

  • Action. Make the camera target follow an actor, without changing the camera eye position. Use 'No Actor' to stop looking at any actor.

Make Camera Look At And Follow Unit[edit | edit source]

  • Action. Make the camera target follow a unit, without changing the camera eye position. Use 'No Unit' to stop looking at any unit.

Set Camera Bounds[edit | edit source]

  • Action. Sets the camera bounds within a region. This will limit the specified Players from moving their camera beyond the specified Bounds. If the Minimap parameter is set to Do, the minimap will also shrink to fit the camera bounds. This is useful for hiding things off map, or having the playable area expand at some point during your map.

Turn Camera Mouse Rotation On/Off[edit | edit source]

  • Action. When this is turned on, it will make a player's drag-scroll camera movements rotate the camera in a free look fashion rather than drag the camera. Use in conjunction with "Lock Camera Mouse Relative Mode On/Off" to make an FPS-style camera.

Set Camera Mouse Rotation Speed[edit | edit source]

  • Action. Sets the yaw or pitch sensitivity of the camera when camera mouse rotation is turned on.

Turn Camera Vertical Field Of View On/Off[edit | edit source]

  • Action. By default, the horizontal screen space is preserved between aspect ratios, and the vertical space gets cropped or expanded as necessary. When vertical field of view is turned on, the vertical screen space will be preserved between aspect ratios, and the horizontal space will get cropped or expanded as necessary.

Shake Camera[edit | edit source]

  • Action. Shakes the camera. If the Duration parameter is set to 0, it will shake the camera until stopped by the "Stop Shaking Camera" action. This action is useful for things such as explosions or earthquakes.

Stop Shaking Camera[edit | edit source]

  • Action. Stops shaking the camera.

Turn Camera Height Displacement On/Off[edit | edit source]

  • Action. When this is enabled, and the camera is following a flying unit, the camera will adjust its height to ensure the flying unit stays visible when the camera zooms in.

Turn Camera Height Smoothing On/Off[edit | edit source]

  • Action. When this is enabled, the camera will transition between terrain height changes smoothly.

Zoom Camera[edit | edit source]

  • Action. Zoom the camera in on a location.

Model Cameras[edit | edit source]

Clear Camera Channel[edit | edit source]

  • Action. Stops a model camera from using the specified render-to-texture channel.

Set Camera Channel[edit | edit source]

  • Action. Sets a model camera for the specified unit to be rendered to the specified render-to-texture channel.

Use Model Camera[edit | edit source]

  • Action. Uses the camera setting that is specific to a unit. This is primarily for model assets which have a built in camera, such as Portraits.

Utility[edit | edit source]

Camera Object Target[edit | edit source]

  • Function. Returns the camera object target.

Camera Object Property[edit | edit source]

  • Function. Returns the value of the specified Property for the chosen Camera Object.

Set Camera Object Target[edit | edit source]

  • Action. Sets a camera object to a selected point.

Set Camera Object Property[edit | edit source]

  • Action. Sets a camera object property.

Apply Camera Property[edit | edit source]

  • Action. Applies a specified camera property such as Depth of Field to a camera object.

Copy Of Camera Object[edit | edit source]

  • Function. Returns a copy of a set camera object.

Camera Move Reason[edit | edit source]

  • Function. Returns the source of the last camera movement.