Hello,
I try this code (in lua), but that doesn't work...
The goal is to respawn directly from death.
Could have some help please ?Code:function PLUGIN:OnEntityDeath(entity) local player = entity:ToPlayer() if player:IsConnected() then player:Respawn(); end end
Player:Respawn() not working
Discussion in 'Rust Development' started by HUON, Feb 29, 2016.
-
Wulf Community Admin
This already exists: Respawner for Rust | Oxide.
You can get the example from that as well. -
Thanks a lot,
But I think the "Respawner plugins" dont work anymore. It's has a timer issue.
And, when I try the code like the "Respawner plugins" without timer, I got issues because of this -> player:Respawn(arg); -
Wulf Community Admin
I'm not sure then. I'm sure I need to update my plugins as well, probably re-write it as well. -
Will work on it.
I 'll let you know if I find something.
But i'm sure the "Respawner plugins" doesn't work. -
you are calling it wrong
-
That may true...
What is the good way to do it ? -
sorry i dont know lua ,
check if entity is BasePlayer then use it with respawn
