• 🏆 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!

Temporarily showing enemy players

Status
Not open for further replies.
Level 7
Joined
Aug 19, 2009
Messages
278
I want to make a spell in which the caster can see all units in 3000 aoe arround it.
Not complete vision in 3000 aoe but like spawning a unit with dummy unit above all enemy units in 3000 aoe with a small sight radius around 500.

But the problem i creating so many dummy units would leak after sometime. So I plan to recycle them. Are there any better methods?
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
I want to make a spell in which the caster can see all units in 3000 aoe arround it.
Not complete vision in 3000 aoe but like spawning a unit with dummy unit above all enemy units in 3000 aoe with a small sight radius around 500.

But the problem i creating so many dummy units would leak after sometime. So I plan to recycle them. Are there any better methods?

Use faerie fire or visibility modifiers.
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
This May work , It lasts for 30 seconds . It is GUI SUI ( for a single unit ) . SPI ( For one player ). You can add arrays to make it MUI MPI .
  • Casting
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Revealing (Custom Ability Based on Stomp)
    • Actions
      • Set Caster = (Triggering unit)
      • Set Caster_Point = (Position of Caster)
      • Visibility - Create an initially Enabled visibility modifier for (Owner of Caster) emitting Visibility from Caster_Point to a radius of 3000.00
      • Set VM = (Last created visibility modifier)
      • Countdown Timer - Start Caster_Timer as a One-shot timer that will expire in 30.00 seconds
      • Set Caster = No unit
      • Custom script: call RemoveLocation(udg_Caster_Point)
  • Destroying
    • Events
      • Time - Caster_Timer expires
    • Conditions
    • Actions
      • Visibility - Disable VM
Or This :
  • Casting
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Revealing
    • Actions
      • Set Caster = (Triggering unit)
      • Set Caster_Point = (Position of Caster)
      • Set Enemies = (Units within 3000.00 of Caster_Point matching (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True))
      • Unit Group - Pick every unit in Enemies and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy for (Owner of Caster) at (Position of (Picked unit)) facing (Position of (Picked unit))
      • Countdown Timer - Start Caster_Timer as a One-shot timer that will expire in 30.00 seconds
      • Set Caster = No unit
      • Custom script: call RemoveLocation(udg_Caster_Point)
  • Destroying
    • Events
      • Time - Caster_Timer expires
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Dummy) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Custom script: call DestroyGroup(udg_Enemies)
 
Status
Not open for further replies.
Top