Skip to content

抛射物 ​

GetSourceEntityId ​

服务端投射物 发射来源 实体归属开发补充

读取投射物的发射者实体标识。

服务端

method in mod.server.component.bulletAttributesCompServer.BulletAttributesComponentServer

  • 描述

获取抛射物发射者实体id

  • 参数

无

  • 返回值
数据类型说明
str抛射物发射者实体id
  • 示例
python
import mod.server.extraServerApi as serverApi
comp = serverApi.GetEngineCompFactory().CreateBulletAttributes(entityId)
comp.GetSourceEntityId()