15 lines
414 B
Lua
15 lines
414 B
Lua
|
local EventAction_PlayerReSpawn = {
|
|||
|
PlayerKey = -1;
|
|||
|
DelayTime = 3.
|
|||
|
}
|
|||
|
|
|||
|
-- 触发器激活时,将执行Action的Execute
|
|||
|
function EventAction_PlayerReSpawn:Execute(...)
|
|||
|
local GameStateType = UGCGameSystem.GameState:GetGameStateType()
|
|||
|
if UGCGameSystem.IsServer() then
|
|||
|
UGCSystemLibrary.RespawnPlayer(self.PlayerKey, self.DelayTime)
|
|||
|
end
|
|||
|
return true
|
|||
|
end
|
|||
|
|
|||
|
return EventAction_PlayerReSpawn
|