Teleportation (Not Instantly) How?

IceWarrior98

New Member
Reaction score
12
There is a map, Space Command I believe it is, where it has warp gates or something. And what they do is they teleport units by turning them into missiles or some sort and shoot them at the target point. Once they reach the target point they return to normal. How do I do this?
 

darkbeer

Beer is Good!
Reaction score
84
when your unit comes within the range of such a portal then hide the unit, create a missile, order it to move to the other portal, when it comes in range of there move your unit there and unhide it.

to make this MUI use a loop array, sth. like this

Code:
Events - Unit comes in range of Portal 1 - 20 // add all portal events here
Actions - if unit is not = Unit of Type missile then
     set MissileTotal = MissileTotal + 1
     set MissileTransportUnit[MissileTotal] = triggeingUnit
     Trigger - disable this Trigger
     Create 1 Missile at Position of triggeringUnit
     set Missile[MissileTotal] = Last CreatedUnit
     Order last created unit to move to Portal X
     Trigger - enable This Trigger
     Else
     For each integerA from 1 to MissileTotal do Actions
         Actions - 
            if Missile[integerA] = triggeringUnit then
                Unit - kill triggerinUnit
                Unit - move MissileTransportUnit[integerA] to Position of triggerinUnit
                Unit - unhide MissileTransportUnit[integerA]
                set Missile[integerA] = Missile[MissilesTotal]
                set MissileTransportUnit[integerA] = MissileTransportUnit[MissilesTotal]
                set MissilesTotal = MissilesTotal - 1

is just an example of the way how to do it, so it leaks terrible and isnt very precise since i just wrote it out of my head
 

IceWarrior98

New Member
Reaction score
12
This would work if a unit casted the ability right? Unit casts ability equal to tele -> hide caster, shoot missile.
missile reachs point -> unhide and tele?
 

darkbeer

Beer is Good!
Reaction score
84
hm, yea with a little modification it would work, you would have to make a second trigger with the event unit starts effect of your abiltiy and do this actions there:

Trigger 1
Code:
Events - Unit starts effect of an abiltiy
Conditions - Ability cast = ur ability
Actions - 
     set MissileTotal = MissileTotal + 1
     set MissileTransportUnit[MissileTotal] = triggeingUnit
     Trigger - disable 2nd Trigger
     Create 1 Missile at Position of triggeringUnit
     set Missile[MissileTotal] = Last CreatedUnit
     Order last created unit to move to Portal X
     Trigger - enable 2nd Trigger

Trigger 2
Code:
Events - Unit comes in range of Portal 1 - 20 // add all portal events here
Conditions - Unit type of triggeringUnit = missile
 For each TempInteger from 1 to MissileTotal do Actions
         Actions - 
            if Missile[TempInteger] = triggeringUnit then
                Unit - kill triggerinUnit
                Unit - move MissileTransportUnit[TempInteger] to Position of triggerinUnit
                Unit - unhide MissileTransportUnit[TempInteger]
                set Missile[TempInteger] = Missile[MissilesTotal]
                set MissileTransportUnit[TempInteger] = MissileTransportUnit[MissilesTotal]
                set MissilesTotal = MissilesTotal - 1
                set TempInteger = TempInteger - 1


so the idea is still the same, just the events changed a little
 

takethat

Active Member
Reaction score
12
there are 2 type of mass teleporting in w3, 1 is the usual mass teleportation, by archmage.

the other 1 is a skill used by the demon or burning legion. the caster will summon certain amount of unit in the casting point area.
when the spell casted, a six point star magic cycle show on the ground...
certain amount of unit(can modify in object editor) will move to the caster.

this is an opposite skill of mass teleportation as mt is to jump with the unit around while this 1 is like calling for reinforcement.

at 1st i tot the item null of recall has this skill, but it isnt and i forgot the name

note: blizzard-provide-skill, not trigger nor jass....
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top