@Beast
;Artificial Intelligence Script
;Header
desc = Teleport enemy to random location in level
:state=0:rundecal=2,coloff
:shotdamage=1:state=1,plrsound=audiobank/scifi/scenery/lifts/teleport.wav,spawnon
:state=1,plrdistfurther=55:state=0
;End of Script
I changed some of it for you, but this is only something I did in seconds. What you're trying to achieve is completely possible.
You would have to get the coordinates of each teleportation spot and when the character is shot, teleport them to those coordinates by doing this:
SetVar=$EPX TeleportCoordX,SetVar=$EPY TeleportCoordY,SetVar=$EPZ TeleportCoordZ
The TeleportCoord... variables would be the positions of the teleportation spots. You'd need to use the "random" command to randomize where the character spawns.
-TZK