local FuncNode_AiRecord = class("FuncNode_AiRecord") --[[ 初始化 --]] function FuncNode_AiRecord:initialize(entity) self.LimitChildCount = 1 self.Type = LuaConst.ConditionFuncType.AiRecord end --[[ 执行 --]] function FuncNode_AiRecord:Run(conditionDataNode, entity, missile) local recordValue = FP.Const.Zero local key = FP.tonumberV1(conditionDataNode.FirstNode:Run(entity, missile)) recordValue = entity.components.aiBase:GetAiRecord(key) if not recordValue then recordValue = entity.components.aiBase:GetEntityRecord(key) end if not recordValue then recordValue = FP.Const.Zero end return recordValue end return FuncNode_AiRecord