[Help] Mass Teleport Ability
Code:
THE TRIGGERS
Mass Teleport
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Mass Teleport
Actions
-------- Settings Variable --------
Set MassTeleport_Caster = (Casting unit)
Set MassTeleport_Target = (Target point of ability being cast)
Set MassTeleport_Group = (Units within 750.00 of (Position of MassTeleport_Caster) matching (((Matching unit) belongs to an ally of (Owner of MassTeleport_Caster)) Equal to True))
-------- Triggers / Teleport Effect --------
Special Effect - Create a special effect at MassTeleport_Target using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
Set MassTeleport_Effect = (Last created special effect)
-------- Fading --------
Unit Group - Pick every unit in MassTeleport_Group and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to MassTeleport_Target
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
nah ada yang bisa fix ga ?
di bagian unit group d jadiin gini :
setiap 0.10s units yang masuk unit group itu menghilang perlahan2, trus begitu opacitynya 100% invinsible, langsung di teleport ke target.