Interface IMyGridWeaponSystem
ModAPI interface giving access to grid-group weapon system
Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public interface IMyGridWeaponSystem
Methods
GetGun(MyDefinitionId)
Get first found gun object with specified definition id.
Declaration
IMyGunObject<MyDeviceBase> GetGun(MyDefinitionId defId)
Parameters
| Type | Name | Description |
|---|---|---|
| MyDefinitionId | defId |
Returns
| Type | Description |
|---|---|
| IMyGunObject<MyDeviceBase> |
Register(IMyGunObject<MyDeviceBase>)
Registers gun in weapon system. Required for being able to use it as a ship tool or weapon: Left mouse hold to shoot
Declaration
void Register(IMyGunObject<MyDeviceBase> gun)
Parameters
| Type | Name | Description |
|---|---|---|
| IMyGunObject<MyDeviceBase> | gun | Interface representing gun |
Unregister(IMyGunObject<MyDeviceBase>)
Unregisters gun in weapon system.
Declaration
void Unregister(IMyGunObject<MyDeviceBase> gun)
Parameters
| Type | Name | Description |
|---|---|---|
| IMyGunObject<MyDeviceBase> | gun |