UGCProjects/GZJ/Script/Blueprint/UGCGameMode.lua

24 lines
523 B
Lua
Raw Normal View History

2025-01-08 22:46:12 +08:00
---@class UGCGameMode_C:BP_UGCGameBase_C
--Edit Below--
local UGCGameMode = {};
-- function UGCGameMode:ReceiveBeginPlay()
-- end
-- function UGCGameMode:ReceiveTick(DeltaTime)
-- end
-- function UGCGameMode:ReceiveEndPlay()
-- end
function UGCGameMode:LuaModifyDamage(Damage, DamageType, InstigatorPlayerState, VictimPlayerState)
return Damage
end
function UGCGameMode:Server_RespawnPlayer(InPlayerKey)
-- 3秒后重生
UGCGameSystem.GetRespawnComponent():AddRespawnPlayer(InPlayerKey, 3)
end
return UGCGameMode;