Hi Guys,
I want to do the following but i really can't get any further
I want to when a player respawns after he died to go to an other spawn point like in liberation on Breaktrough
So when the map starts the player will spawns on the original spawn point
and when he died he spawns on the spawnpoint i made
i know how to create spawnpoints by using scripts.
Greetz DigitaC
respawn option
Moderator: Moderators
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
you must have access to the *.map file. If you do: give the 2 different sets of spawnpoints 2 different names ( one set with targetname / "start_spawn_area" and the other set with targetname / "later_spawn_area" as an example ). Execute before the start of the map. And execute after, say... 10 seconds? ... Thats it.
Code: Select all
$later_spawn_area disablespawnCode: Select all
$later_spawn_area enablespawn
$start_spawn_area disablespawn-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
is it possible to do the following
main:
end
check_players:
end
capture local.team:
end
i did this just out of the head so i don't know if there is something wrong or so
DigitaC
main:
Code: Select all
thread check_playerscheck_players:
Code: Select all
for ( local.n = 1 ; local.n <= $player.size ; local.n++ )
{
$player[local.n].prisoner = 1
$player[local.n] thread capture $player[local.n].dmteam
}capture local.team:
Code: Select all
while (( isalive self ) && ( self.prisoner == 1 ))
{
self.origin = ( x y z )
}i did this just out of the head so i don't know if there is something wrong or so
DigitaC
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
