--- sidebarDepth: 1 --- # 附加值 ## GetAuxValue 服务端客户端 ### 服务端接口 method in mod.server.component.auxValueCompServer.AuxValueComponentServer - 描述 获取射出的弓箭或投掷出的药水的附加值 - 参数 无 - 返回值 |
数据类型
| 说明 | | :--- | :--- | | int | auxValue | - 示例 ```python import mod.server.extraServerApi as serverApi comp = serverApi.GetEngineCompFactory().CreateAuxValue(entityId) comp.GetAuxValue() ``` ### 客户端接口 method in mod.client.component.auxValueCompClient.AuxValueComponentClient - 描述 获取射出的弓箭或投掷出的药水的附加值 - 参数 无 - 返回值 |
数据类型
| 说明 | | :--- | :--- | | int | 具体数值见wiki的“箭”及“药水”页面 | - 示例 ```python import mod.client.extraClientApi as clientApi comp = clientApi.GetEngineCompFactory().CreateAuxValue(entityId) auxValue = comp.GetAuxValue() ```