|
def OnProjectileDoHitEffectEvent(self, args):
type = args["hitTargetType"]
entityId = args["id"]
basecomponent = serverApi.GetComponent(entityId,"muffinhead","custom_arrow")
if basecomponent != None:
if type == "BLOCK":
self.DestroyEntity(entityId)
print "1"
else:
basecomponent = serverApi.GetComponent(entityId,"muffinhead","custom_arrow")
print basecomponent
这里是get实体 实体ID有了 命名空间和名字 我配置文件写的是
identifier:muffinhead:custom_arrow
为什么这个一直输出None |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|