Can I use a player's current camera view as a region?

Evoroth

New Member
Reaction score
11
I got a genial groundbreaking mindmelting idea a few nights ago, and got pretty disappointed when I realized that "Current Camera Bounds" wasn't the region which a selected player was currently viewing. So is it, with any hacks or mods, possible to get the current players camera view and use it as a rect?

if Triggering Unit is inside player 3's current camera view, then
move triggering Unit to the center of player 2's current camera view

I love all of you. If it wasn't for these forums, I would have a life. And for now, my life isn't really where I wanna breathe and die. So thank to all of you!
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
If Distance between (Position of <some unit>) and (Center of current view) less than 1300 then... there's a chance you're currently seeing that unit.

Not exactly perfect, but workable.


Though, camera actions that get values rarely come with an option for the player... which calls for JASS. And has the potential not to work or desync the map.


It's much easier when the view is permanently locked to a unit :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top