Closed AMZN-puvvadar closed 1 year ago
Alternative is to implement telepads.
My recommendation would be to have a death AZ::Event on the health component.. make the MultiplayerSampleSystemComponent or alternatively a script canvas graph hook the zero-health event and invoke the multiplayer spawner API to retrieve the coords to teleport the character, then invoke the teleport API.
MPS + NewStarBase has functioning Teleporters, closing as deliver
Is your feature request related to a problem? Please describe. This relates to confusion around the usage
m_resetCount
in https://github.com/o3de/o3de/issues/9472. It's not clear how to implement teleportation without an example.Describe the solution you'd like On Player Health reaching 0, teleport the player back to spawn with full health. Teleportation should be accomplished by incrementing
m_resetCount
onNetworkTransformComponent
plus appropriate sets on the Entity's transform.Describe alternatives you've considered Any type of movement feature that involves teleportation. For example, warping 100 meters forward. This is easily tested by warping past a stack of blocks without physically disturbing them.