Class: CWeaponRG6
Client object binding for CWeaponRG6 inventory items.
Source
src/xrGame/WeaponScript.cpp, CWeaponRG6 binding.
Custom Constructor
CWeaponRG6
Extends
Constructors
Constructor
protected new CWeaponRG6(): CWeaponRG6;Cast-only runtime wrapper.
Returns
CWeaponRG6
Inherited from
Methods
_construct()
_construct(): DLL_Pure;Construct engine-side object state.
Returns
Constructed base object.
Remarks
Lifecycle hook used by the engine. Calling it from gameplay scripts can reinitialize native state unexpectedly.
Inherited from
can_kill()
can_kill(): boolean;Check whether the weapon can currently fire a lethal shot.
Returns
boolean
Whether the weapon can kill.
Remarks
Returns true when the weapon has suitable ammo available or does not use ammo. This is the same predicate used by actor and stalker weapon selection before considering an item lethal.
Inherited from
getEnabled()
getEnabled(): boolean;Returns
boolean
Whether the object is enabled in the client object loop.
Inherited from
getVisible()
getVisible(): boolean;Returns
boolean
Whether the object is visible.
Inherited from
net_Export()
net_Export(net_packet: net_packet): void;Export network state to a packet.
Parameters
| Parameter | Type | Description |
|---|---|---|
net_packet | net_packet | Destination network packet. |
Returns
void
Inherited from
net_Import()
net_Import(net_packet: net_packet): void;Import network state from a packet.
Parameters
| Parameter | Type | Description |
|---|---|---|
net_packet | net_packet | Source network packet. |
Returns
void
Inherited from
net_Spawn()
net_Spawn(cse_abstract: cse_abstract): boolean;Spawn the client object from its server object.
Parameters
| Parameter | Type | Description |
|---|---|---|
cse_abstract | cse_abstract | Server object used for spawn data. |
Returns
boolean
Whether spawn succeeded.
Remarks
Lifecycle hook used during network spawn. Return false to reject spawn in custom subclasses.
Inherited from
use()
use(object: CGameObject): boolean;Use another object through the engine interaction path.
Parameters
| Parameter | Type | Description |
|---|---|---|
object | CGameObject | Object being used. |
Returns
boolean
Whether the use action was handled.
Inherited from
Visual()
Visual(): IXR_IRender_Visual;Returns
Render visual assigned to the object.
Inherited from
Properties
__name
readonly __name: string;LuaBind instance constructor name.
Inherited from
__name
readonly static __name: string;LuaBind class constructor name.