src/entities/Player.js
/**
	* Inits the death of the player.
	*
	* @return {Player} A reference to this game entity.
	*/
Inits the death of the player.
@return {Player} A reference to this game entity.
Inits the death of the player . @return { Player } A reference to this game entity .
initDeath() {
		this.status = STATUS_DYING;
		this.endTimeDying = this.currentTime + this.dyingTime;
		this.velocity.set( 0, 0, 0 );
		const animation = this.animations.get( 'player_death' );
		animation.play();
		this.weaponSystem.hideCurrentWeapon();
		this.world.fpsControls.active = false;
		this.world.uiManager.hideFPSInterface();
		return this;
	}
initDeath ( ) { this . status = STATUS_DYING ; this . endTimeDying = this . currentTime + this . dyingTime ; this . velocity . set ( 0 , 0 , 0 ) ; const animation = this . animations . get ( 'player_death' ) ; animation . play ( ) ; this . weaponSystem . hideCurrentWeapon ( ) ; this . world . fpsControls . active = false ; this . world . uiManager . hideFPSInterface ( ) ; return this ; }
Inits the death of the player.
Inits the death of the player .