Done entirely with data editor. No trigger was involved.
Portal Gun is a combination of two spell:
* Create Portal Entrance
Create an entrance portal that teleport All unit stepped inside to an exit portal you owned. Invulnarable and untargetable. Last for 30 seconds. Only teleport if an exit portal is available. Will dissipate if placed on top of an exit portal
* Create Exit Portal
Create an exit portal that receive all teleportation from all of your entrance portal. Will destroy all previously created exit portal owned by you. Has 300 HP and last 30s. Halt all teleportation if killed.
A simple guide/tutorial will be posted later. Based on forcefield and mothership recall