UGCProjects/GZJ/Script/Blueprint/AI/BTT_BossCharmPlayCurseSkill.lua
2025-01-08 22:46:12 +08:00

17 lines
720 B
Lua

---@class BTT_BossCharmPlayCurseSkill_C:BTTask_LuaBase
--Edit Below--
local BTT_BossCharmPlayCurseSkill = {}
-- -- entry point, task will stay active until FinishExecute is called
function BTT_BossCharmPlayCurseSkill:ReceiveExecuteAI(OwnerController, ControlledPawn)
if not ControlledPawn or not OwnerController or not ControlledPawn.PlayCharmCurseSkillExe then
OwnerController:GetBlackboardComponent():SetValueAsBool("CanPlayCharmCurseSkill", false)
self:FinishExecute(true)
return
end
ControlledPawn:PlayCharmCurseSkillExe()
OwnerController:GetBlackboardComponent():SetValueAsBool("CanPlayCharmCurseSkill", false)
self:FinishExecute(true)
end
return BTT_BossCharmPlayCurseSkill