Please note: this is untested. Please do not take the code until it works. (Let's use the 'honor system'
)
The goal here is to capture all respawn points, then teleport to a random one. (Teleport code not added yet, just the capture code)
This was modified from the code Hideki posted for Jawa Tag. Think this will work Hideki?
Hopefully this will work. I'll test it later.
-Tazz
[This message has been edited by Tazz (edited July 27, 2001).]
![http://forums.massassi.net/html/wink.gif [http://forums.massassi.net/html/wink.gif]](http://forums.massassi.net/html/wink.gif)
The goal here is to capture all respawn points, then teleport to a random one. (Teleport code not added yet, just the capture code)
This was modified from the code Hideki posted for Jawa Tag. Think this will work Hideki?
Code:
//Thanks to Hideki for the following code: For(x=0; x<GetSectorCount(); x=x+1) { potential = FirstThingInSector(x); While(potential != -1) { If(GetThingTemplate(potential) == walkplayer_tpl) { respawn[ID] = potential; ID = ID + 1; } potential = NextThingInSector(potential); } } chosen = rand()*ID; if(chosen == ID) chosen = ID - 1; randRespawn = respawn[chosen];
Hopefully this will work. I'll test it later.
-Tazz
[This message has been edited by Tazz (edited July 27, 2001).]
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance
Tazz
Tazz