I use this script to add some variety to a deathmatch. I am certain there is a more simple way to pull this off. The script is called from a grouped trigger by each unit, so that means I have 12 grouped triggers calling 12 seperate scripts just to position the player in a deathmatch away from another player after a respawn. Other than using the OR command I can't think of a way to streamline the process. This has been tested in MP with 4 players. Anyone have an idea to streamline this whole process?
;________________________
;::::::::::::::::::::::::
;
;Place Documentation here
;author Zombie
;created 12/9/2004 8:09:22 PM
;________________________
;::::::::::::::::::::::::
#here
;;getpos here references a gl named here
;;s1 through s12 are the units
s1 setpos [(getpos here select 0)+ random 45, (getpos here select 1) + random 45, getpos here select 2]
?(s1 distance s2)<= 15:goto "nothere"
?(s1 distance s3)<= 15:goto "nothere"
?(s1 distance s4)<= 15:goto "nothere"
?(s1 distance s5)<= 15:goto "nothere"
?(s1 distance s6)<= 15:goto "nothere"
?(s1 distance s7)<= 15:goto "nothere"
?(s1 distance s8)<= 15:goto "nothere"
?(s1 distance s9)<= 15:goto "nothere"
?(s1 distance s10)<= 15:goto "nothere"
?(s1 distance s11)<= 15:goto "nothere"
?(s1 distance s12)<= 15:goto "nothere"
;;s1 sidechat "warped"
exit
#nothere
;;getpos nothere references a gl named nothere
s1 setpos [getpos nothere select 0, getpos nothere select 1, (getpos nothere select 2) + random 15]
;;?(s1 distance s2)<= 5:goto "here"
exit