• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Vision

Status
Not open for further replies.
The abillity is in "stats" that is the base range. To add sight range, make a simple trigger. Get a dummy passive spell. If a unit learns a ability, then order a dummy to use a upgrade, as that CAN upgrade sightrange. I know, because in my sniper unit, I created a upgrade. Go to "Upgrades Used" and add the sight upgrade to the hero.
 
Afaik, there are no triggers to increase sight range. There might be an upgrade, but that's not something that can be toggled or reversed.
 
some1 made that trigger for me and apperently it works goot but its make the game laggin as shit!!!! maybe there a way to make it better but still ,i was thinking if u create a unit that follow a unit wont it glitch witht he other hero so the player select the dummy ?

JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    local fogmodifier vision1 = CreateFogModifierRadius(Player(1),FOG_OF_WAR_VISIBLE,GetUnitX(udg_unit26),GetUnitY(udg_unit26),1500.00,true,false)
    call FogModifierStart(vision1)
    call TriggerSleepAction(0.10)
    call DestroyFogModifier(vision1)
    set vision1 = null
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_001 = CreateTrigger(  )
    call TriggerRegisterTimerEventPeriodic( gg_trg_Untitled_Trigger_001, 0.01 )
    call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
 
hmm i had a trigger jass for this but i lost it!!! it was made with local variable and shit :/ ill try to refind it but still any1 could find an e-zy to trigger to make ?

edit: there it is the trigger i made , whenn i tryed it wouldnt work maybe i did something wrong lol cuz this trigger would be probly the ez-iest but it would need other system like if udg_unit26 die destroy dummy and create a new 1 when he revive :o

but im still asking if the dummy could be click by the unit im using as udg_unit26

JASS:
function Trig_veg_vision1_Actions takes nothing returns nothing
    local real x = GetUnitX(udg_unit26)
    local real y = GetUnitY(udg_unit26)
    local unit u
    call TriggerSleepAction(2)
    set u = CreateUnit(Player(1),'h028',x,y,270)
    call IssueTargetOrder(u,"move",udg_unit26)
    call SetUnitTimeScale(u,10)
    call SetUnitTurnSpeed(u,1)
    call SetUnitMoveSpeed(u,1000)
    call SetUnitAcquireRange(u,1500)
    set u = null
endfunction

//===========================================================================
function InitTrig_veg_vision1_Copy takes nothing returns nothing
    set gg_trg_veg_vision1_Copy = CreateTrigger(  )
    call TriggerAddAction( gg_trg_veg_vision1_Copy, function Trig_veg_vision1_Actions )
endfunction


edit- srry for my spelling :( im french :/
 
Last edited:
Status
Not open for further replies.
Back
Top