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

[GUI] Make every area of type Plague visible for a player

Status
Not open for further replies.
Level 5
Joined
Jun 5, 2009
Messages
121
[GUI] Make every area of type Plauge visible for a player

Hi hive,

I am working on a Survival with a Player zombie who searches for the runners, and i want that the Zombie can see every Area visible whats the type of Plague, i hope anyone can help me >.<
 
Last edited:
Level 2
Joined
Nov 16, 2008
Messages
24
add the plauge areas to a region array

region array: plauge[1]
integer: Number_Of_Plauge_Regions = 12
Then
  • For each (Integer A) from 1 to Number_Of_Plauge_Regions, do (Actions)
    • Loop - Actions
      • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (plauge[For Integer A])
Player 1 can be any player you want
 
Level 2
Joined
Nov 16, 2008
Messages
24
Oh, do you mean blight?

if so uhhhh, Well this meathod would work but it will create 1 unit per second and after 10 minutes they will be 600.

  • Zombie Unit
    • Events
      • Time - Every 1 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Dummy Unit for Player 1 (Red) at (Zombie Unit) facing Default building facing degrees
      • Custom script: call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() )
ZombieUnit is the player zombie
Player 1 is whichever player is the zombie
and Dummy Unit is a unit the appropiate site range
 
Level 5
Joined
Jun 5, 2009
Messages
121
that would be work, but that would create much useless dummys, cause if the zombie hero walk a way 2 times or stay for a while on a place, it would create dummys too, is there no way to make all region of type X visible for a player? >.<

maybe i add your trigger this

  • Kill Useless Dummys
    • Event
      • Unit - A unit comes within 500,00 of Dummy
    • Conditions
      • (Unit-type of (Triggering unit) equal Dummy
    • Actions
      • Unit - Remove (Triggering Unit) from the game
dont know if this will work
 
Status
Not open for further replies.
Top