• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Off-Camera Units

Status
Not open for further replies.
Level 7
Joined
Aug 31, 2006
Messages
132
How do i register a unit that is not in current screen of another player or just not in the current camera bounds.

For example if all players have a camera bound to a unit, which moves until they are not seen on it's screen.

I tried using "Unit leaves current camera bounds" but that didn't work. Instead it seemed to lock on the starting region and didn't change at all.
 
Level 7
Joined
Aug 31, 2006
Messages
132
Well, i DO lock it to a unit by using a timer and locking camera boundary for all players to a unit. But that doesnt work. The other trigger is, "Unit Leaves Region - Current Camera Boundary - Explode leaving unit". But that doesnt happen.
 
check every 0.03 seconds, if a unit is in the current camera view. if not, it will explode (or your actions). Wait I try to make this with triggers

[EDIT]
well I made it with camera bounds, because there was nothing to check the current camera view.

  • Camera bounds check
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
      • ((Current camera bounds) contains (YourUnit)) Equal to False
      • ((YourUnit) is Dead) Equal to False
    • Actions
      • Unit - Explode (YourUnit)
 
Status
Not open for further replies.
Top