• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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