UGCProjects/SoldierWar/Script/gamemode/Action_PlayerRespawn.lua
2025-01-04 23:00:19 +08:00

12 lines
304 B
Lua
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local Action_PlayerRespawn = {
PlayerKey = 0,
}
-- 触发器激活时将执行Action的Execute
function Action_PlayerRespawn:Execute(...)
UGCEventSystem.SendEvent(EventTypes.PlayerRespawn, self.PlayerKey)
PluginManager:OnPlayerRespawn(self.PlayerKey);
return true
end
return Action_PlayerRespawn