- Joined
- Dec 26, 2007
- Messages
- 125
Whats the ability name or item that adds vision?
Its just so that i can change the vision range.
Its just so that i can change the vision range.
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
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