TeleportOnExplodeScript
Teleports player to location of exploding spell.
#
Codelocal flyEx = {}
function flyEx:FlyStart(vel) if self.explodeRange > 0 then CL.EffectMgr.Instance:PlayEffect(self.explodeEffect, self.trans.position, self.trans.rotation) local player = CL.InteractCharacter.PlayerInstance if player == nil then return end player:Transport(self.trans.position) endend
return Class(nil, nil, flyEx)