Code: Select all
RespawnTime=0
bInstantRespawn=True
Code: Select all
RespawnTime=20
bInstantRespawn=False
The comments in the code of Inventory.uc say that RespawnTime==0 means "instant respawn":
Code: Select all
var() bool bInstantRespawn; // Can be tagged so this item respawns instantly.
var() float RespawnTime; // Respawn after this time, 0 for instant.
Another code snippets from Inventory.uc (global function) says that RespawnTime==0 means "no respawn":
Code: Select all
function DropFrom(vector StartLocation) {
if ( !SetLocation(StartLocation) )
return;
RespawnTime = 0.0; //don't respawn
...
}
...
State Sleeping {
...
Begin:
Sleep( ReSpawnTime );
PlaySound( RespawnSound );
Sleep( Level.Game.PlaySpawnEffect(self) );
GoToState( 'Pickup' );
}