playerRespawnTime always return -1
setPlayerRespawnTime has no effect ofcourse.
Description
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7
- Category
- Scripting
Event Timeline
Do you use selectPlayer to switch to another unit before?
If yes this issue might be the same as these three:
https://feedback.bistudio.com/T121730
https://feedback.bistudio.com/T121717
https://feedback.bistudio.com/T121736
Nope, only executed in a running mission without selectPlayer.
Main issue was the respawn timer in Epoch.
Then be advised that it is normal that playerRespawnTime is -1 while you are alive. If you die the time should start to count down. At least it does for me.
It should start with the value you set with setPlayerRespawnTime. If you never set a value it will use the value defined in config or editor.
I talked to vbawol who is one of the developers of epoch and he confirmed that they use selectPlayer.
So I think this is related those:
https://feedback.bistudio.com/T121717
https://feedback.bistudio.com/T121730
https://feedback.bistudio.com/T121736