Interface IMyUserControllableGun
Describes gun block (PB scripting interface)
Inherited Members
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Syntax
public interface IMyUserControllableGun : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Properties
IsShooting
Gets whether block is shooting
Declaration
bool IsShooting { get; }
Property Value
Type | Description |
---|---|
System. |
Shoot
Represents terminal gui toggle element "Shoot". Not same as Is
Declaration
bool Shoot { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
ShootOnce()
Triggers a single shot.
Declaration
void ShootOnce()