Files
netease-modsdk-wiki/docs/mcdocs/1-ModAPI/接口/实体/抛射物.md
2025-03-17 13:24:39 +08:00

584 B

sidebarDepth
sidebarDepth
1

抛射物

GetSourceEntityId

服务端

method in mod.server.component.bulletAttributesCompServer.BulletAttributesComponentServer

  • 描述

    获取抛射物发射者实体id

  • 参数

  • 返回值

    数据类型
    说明
    str 抛射物发射者实体id
  • 示例

import mod.server.extraServerApi as serverApi
comp = serverApi.GetEngineCompFactory().CreateBulletAttributes(entityId)
comp.GetSourceEntityId()