Skip to content

HEOSpawn

HEOSpawn_1

HEOSpawn designates a random spawn point for the player, by placing multiple gameobjects with this component in the world.

The player will spawn according to the HEOSpawn's World Position and World Rotation.
On spawn, the TPS camera rotation will be initialilzed with the HEOSpawn's X-axis rotation value added.
When respawning, the player will be placed on the position of HEOPlayer.

Also, if the Single Play Mode is enabled, the rotation value of HEOPlayer will be added to the player's rotation as well.

How to Use

1. Add multiple gameobjects to designate the spawn points, with attaching the HEOSpawn component. HEOSpawn_2

For example, the Cube_Spawn_1~Cube_Spawn_3 is added to the world, with the HEOSpawn component attached to the SpawnPoint child object.

HEOSpawn_3 

Also, to avoid the player being buried to the ground on spawning, the SpawnPoint position is designated to be on the cube.

HEOSpawn_4 

2. Enter the world, and check that the player's initial spawn position changes randomly, as below:

HEOSpawn_5 

HEOSpawn_6 

3. When respawning after actions such as falling down than the despawn height, the respawn position will be the HEOPlayer's position.

HEOSpawn_7