Superfighters Deluxe
PlayerWeaponRemovedArg Struct Reference

PlayerWeaponRemovedActionCallback.Event arguments More...

Public Member Functions

 PlayerWeaponRemovedArg (WeaponItemType wpnItemType, WeaponItem wpnItem, int tarObjectID, bool wasDropped, bool wasThrown)
 

Public Attributes

readonly bool Dropped
 Gets if this item was manually dropped by the player (holding the drop button). False if removed from other sources, such as disarm, deaths, throws, scripts etc... More...
 
readonly int TargetObjectID
 Gets the ObjectID of the object created in the world. Returns 0 if no object was created in the world. Note: The IObject, even if created, might not exist anymore if removed from other scripts or events. Note: This might be an IObjectWeaponItem or IObject of some other type depending if the player dropped the item or threw this item. More...
 
readonly bool Thrown
 Gets if this item was thrown by the player. More...
 
readonly WeaponItem WeaponItem
 Gets the WeaponItem that was Removed. More...
 
readonly WeaponItemType WeaponItemType
 Gets the weapon item type that was Removed. More...
 

Detailed Description

PlayerWeaponRemovedActionCallback.Event arguments

Constructor & Destructor Documentation

◆ PlayerWeaponRemovedArg()

PlayerWeaponRemovedArg ( WeaponItemType  wpnItemType,
WeaponItem  wpnItem,
int  tarObjectID,
bool  wasDropped,
bool  wasThrown 
)

Parameters
wpnItem
wpnItemType
tarObjectID
wasDropped
wasThrown

Member Data Documentation

◆ Dropped

readonly bool Dropped

Gets if this item was manually dropped by the player (holding the drop button). False if removed from other sources, such as disarm, deaths, throws, scripts etc...

◆ TargetObjectID

readonly int TargetObjectID

Gets the ObjectID of the object created in the world. Returns 0 if no object was created in the world. Note: The IObject, even if created, might not exist anymore if removed from other scripts or events. Note: This might be an IObjectWeaponItem or IObject of some other type depending if the player dropped the item or threw this item.

◆ Thrown

readonly bool Thrown

Gets if this item was thrown by the player.

◆ WeaponItem

Gets the WeaponItem that was Removed.

◆ WeaponItemType

Gets the weapon item type that was Removed.