Random spawn points
Random spawn points
Is there any way to have sevearl spawn points per player and pawn?Would there be a teleport entity on the default start, and it would teleport you to a random place?perhaps
Once I was sad, and I stopped being sad and was awesome instead.
True story.
True story.
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
ya i my little ol thread here
http://www.realityfactory.info/forum/vi ... php?t=1778
you can download respawn scripts and open the script for player here
{
make it like this put more switches or less instead of teleportentity and rename the spawn_point diff
http://www.realityfactory.info/forum/vi ... php?t=1778
you can download respawn scripts and open the script for player here
{
Code: Select all
Spawn[ ()
{
LowLevel("setup");
} ]
setup[ ()
{
PawnRender(false);
self.think = "check";
} ]
check[ ()
{
self.ThinkTime = 0.5;
if(GetAttribute("playerhealth","Player") < 1)
{
SetAttribute("playerhealth", 100,"Player");
TeleportEntity("Player","spawn_point");
}
} ]
}Code: Select all
switch(random(1,4))
{
case 1
{
TeleportEntity("Player","spawn_point");
}
case 2
{
TeleportEntity("Player","spawn_point1");
}
case 3
{
TeleportEntity("Player","spawn_point2");
}
case 4
{
TeleportEntity("Player","spawn_point3");
}
}Herp derp.