Name | Type | is_array | initial_value |
DestructTree | destructable | No | |
FTextBomb | texttag | No | |
IntRandom | integer | No | |
IntRepeat | integer | No | |
IntSound1 | integer | No | |
IntSound2 | integer | No | |
IntSound3 | integer | No | |
IntWins | integer | Yes | |
ItemBomb | item | No | |
PointTree | location | No | |
RealBomb | real | No | 35.00 |
SEBomb | effect | No | |
SETeleport | effect | Yes | |
TimerBomb | timer | No | |
TWindowBomb | timerdialog | No | |
UnitHero | unit | Yes | |
VModAll | fogmodifier | Yes | |
Weather1 | weathereffect | No |
function Trig_Switch_Places_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A007' ) ) then
return false
endif
return true
endfunction
function Trig_Switch_Places_Actions takes nothing returns nothing
local unit cc=GetTriggerUnit()
local unit tt=GetSpellTargetUnit()
local location c=GetUnitLoc(GetTriggerUnit())
local location t=GetUnitLoc(GetSpellTargetUnit())
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 0.30, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 100.00, 100.00, 0 )
call PolledWait(0.01)
call PlaySoundAtPointBJ( gg_snd_LightningBolt, 100, GetUnitLoc(cc), 0 )
call SetUnitPositionLoc( cc, t )
call SetUnitPositionLoc( tt, c )
endfunction
//===========================================================================
function InitTrig_Switch_Places takes nothing returns nothing
set gg_trg_Switch_Places = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Switch_Places, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Switch_Places, Condition( function Trig_Switch_Places_Conditions ) )
call TriggerAddAction( gg_trg_Switch_Places, function Trig_Switch_Places_Actions )
endfunction