Teleporting to random destination

Discuss all aspects related to modding Zandronum here.
Post Reply
Flaminglacier
 
Posts: 65
Joined: Thu Jun 21, 2012 9:28 pm

Teleporting to random destination

#1

Post by Flaminglacier » Fri Jun 27, 2014 10:18 pm

Is there anyway I can teleport a group of players without using teleportgoup? Like can I give every player the same TID then teleport them all to a bunch of teleport spots that share the same id?
Image

User avatar
Ivan
Addicted to Zandronum
Posts: 2229
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

RE: Teleporting to random destination

#2

Post by Ivan » Fri Jun 27, 2014 10:40 pm

Give them all a unique TID, then in a for loop teleport them all individually.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

Flaminglacier
 
Posts: 65
Joined: Thu Jun 21, 2012 9:28 pm

RE: Teleporting to random destination

#3

Post by Flaminglacier » Sat Jun 28, 2014 5:45 pm

I already have a script that requires all players to have the same id. Is it possible that when I do the teleportation script it teleports each player to a random teleport destination that has the same id as the other destinations?
Image

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Teleporting to random destination

#4

Post by Vincent(PDP) » Sun Jun 29, 2014 9:13 am

Flaminglacier wrote: I already have a script that requires all players to have the same id. Is it possible that when I do the teleportation script it teleports each player to a random teleport destination that has the same id as the other destinations?
If there are multiple they're always random.
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Post Reply