condition regarding current camera view

scubazoo

Member
Reaction score
1
how do you make a condition checking current camera view, such as camera bounds and field of view?
 

Azylaminaz

Vox Populi
Reaction score
91
The "view" commonly refers to the camera. Camera bounds aren't very interactive with cameras (it's like a region in which a camera can exist).

Camera bounds is a region, Current Camera Bounds such as...
Trigger:
  • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Current camera bounds)) facing Default building facing degrees

Camera fields can be retrieved by using the Camera - Camera Field of Current Camera (when selection a real), such as in...
Trigger:
  • Wait (Field of view of the current camera view) seconds


Since it is likely you are trying to get the camera field of a specific player's camera (if they are customizable, they will be different), I believe you have to make use of the GetLocalPlayer() native, such as in...
Trigger:
  • Actions
    • Custom script: if GetTriggerPlayer() == GetLocalPlayer() then
    • Wait (Field of view of the current camera view) seconds
    • Custom script: endif


Not sure if camera bounds will be different per a player, but you'd do the same thing for getting the camera bounds of a specific player.

Note GetLocalPlayer() returns the player whom's the trigger is running on.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top