Dynamic respawn point

Hello everyone,

I want to create a dynamic spawn point in my mission. I’ve tried many approaches, but none have worked so far.

I tested duplicateAreaAtPos (with a parameter named var_out) on the position of a vehicle that had stopped at a specific location. Then I used markAsRespawnPoint(@var_out) , but it didn’t work.

I also tried using markAsRespawnPoint directly on the vehicle with the isUnit parameter enabled, but that also didn’t work.

MoveRespawnBase on vehicle also no results.

To describe the full task clearly: I have a unit that is moving, and at a specific moment, I want to create a spawn point directly on it or at its position.