H
Hohan
Guest
I presume the circle spell animation for teleport is a special effect. If so, I would like to know how to use it.
Thanks.
Hohan
Thanks.
Hohan
Special Effect Destruction
Events
Conditions
Actions
Custom script: local effect tempEffect
Custom script: set tempEffect = udg_SpecialFX
Wait 7.00 game-time seconds
Custom script: set udg_SpecialFX = tempEffect
Special Effect - Destroy SpecialFX
Special Effect - Create a special effect at <point> using <SFX>
Trigger - Run Special Effect Destruction <gen> (ignoring conditions)
Nop, you still need the entire code.emjlr3 said:so your destrcution trigger would only need like?Code:Wait 7.00 game-time seconds Special Effect - Destroy SpecialFX set SpecialFX = null
[b]Special Effect Destruction[/b]
Actions
Custom script: local effect tempEffect = [u]GetLastCreatedEffectBJ( )[/u]
Wait 7.00 game-time seconds
Custom script: set udg_SpecialFX = tempEffect
Custom script: [i]set tempEffect = null[/i]
Special Effect - Destroy SpecialFX
[b]Special Effect Destruction[/b]
Events
Conditions
Actions
Custom script: local effect ef = bj_lastCreatedEffect
Custom script: local real lifetime = udg_SFX_LifeTime
Set SFX_LifeTime = SFX_LifeTime_Default
Custom script: call TriggerSleepAction( lifetime )
Custom script: call DestroyEffect( ef )
Custom script: set ef = null
[b]Map Initialization[/b]
Events
Map Initialization
Actions
...
Set SFX_LifeTime_Default = 7.00
Set SFX_LifeTime = SFX_LifeTime_Default
...
Create a special effect at (point) using (SFX)
Run Special Effect Destruction
Create a special effect at (point) using (SFX2)
Set SFX_LifeTime = 15.00
Run Special Effect Destruction
Create a special effect at (point) using (SFX3)
Run Special Effect Destruction
function Trig_Foot_Switch_to_Teleport_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Region_006), function Trig_Foot_Switch_to_Teleport_Func005002 )
[B]local effect tempEffect = GetLastCreatedEffectBJ( )[/B]
call PolledWait( 7.00 )
[B]set udg_SpecialFX = tempEffect[/B]
[B]set tempEffect = null[/B]
[B]Destroy SpecialFX
Events:
Unit - A unit enters Region 010 <gen>
Unit - A unit enters Region 009 <gen>
Conditions:
((Owner of (Triggering unit)) controller) Equal to (Player 1 (Red) controller)
((Foot Switch 0068 <gen> is dead) Equal to True) and ((Foot Switch 0069 <gen> is dead) Equal to True)
Actions
Unit Group - Pick every unit in (Units in Region 006 <gen>) and do (Unit - Move (Picked unit) instantly to (Center of Region 008 <gen>))
Custom script: local effect tempEffect = GetLastCreatedEffectBJ( )
Wait 7.00 game-time seconds
Custom script: set udg_SpecialFX = tempEffect
Custom script: set tempEffect = null
Custom script: Destroy SpecialFX