Works similarly to the Object Spawner, but makes it possible to spawn playable entities assigned to playing clients in the session. It is important that the playing client gets to own the corresponding player object.
Example: Connect Player index from the Multiplayer Info “On Player Joined” output to “Player Index” input in the Multiplayer Spawner to spawn character that new player can control!
Object To Spawn | Works like the normal Object Spawner, determining which object should be spawned. If used with a regular object and not a reusable, make sure to enable “Reference Object” from that object! |
Spawn At | Position where the object is spawned. If unset, it will spawn at the node itself. |
Execute | Spawn the object. The client that executes this will gain the ownership of this object. |
On Start | Executes the node when the game starts |
Enabled | Enables or disables the component |
Use Spawner Local Transform | Uses local transform of the Spawn At object to determine the spawn direction. |
Offset as Absolute Transform | Determines if Offset X / Y / Z should be used as an absolute transform instead of a local offset. |
Player Index |
Index of the player to spawn. Player 1 = Zero |
Offset X/Y/Z | Offset for the start position for the spawned object. |
Player Index | Passes the player index when the player is spawned |
How to create a Multiplayer game? Check out this wiki article: https://wiki.hypehype.com/en/editor/components/multiplayer