-
-
Notifications
You must be signed in to change notification settings - Fork 30
Item
If the item is InWorld, removes the Item from the world. If it is part of an inventory, it removes the item from the inventory.
Drops the item as if a player has dropped it from their inventory. Will only drop the item if InWorld is false
.
Gets the position of the Item. If it is an inventory item, gets the position of the Player that holds it.
Returns:
Vector
Gets the kinematic value of the Item. If InWorld is false, will always return false.
Returns:
bool
Static method. Gets all of the items in the world. If world_only is false, will also search through player inventories to find items. The type
parameter can be used to filter the type of item to find.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
ItemType | type | ItemType.NULL | Filters the list by ItemType. |
bool | world_only | false | Determines if the method will also search through player inventories to find items. |
Returns:
List<Item>
Sets the position of the Item.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
Vector |
pos | none | The new position of the Item. |
Sets the kinematic value of the Item.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
bool |
doPhysics | none | Whether to do physics or not. |
Returns if the item is in the world. Read only.
Field Value:
bool
Returns the ItemType of the item. Read only.
Field Value:
ItemType
- Installation
- Config
- Server Name Variables
- Commands
-
- Admin Events
- Enviroment Events
-
Player Events
- OnPlayerHurt
- OnPlayerDie
- OnPlayerPickupItem
- OnPlayerDropItem
- OnPlayerJoin
- OnNicknameSet
- OnAssignTeam
- OnSetRole
- OnCheckEscape
- OnSpawn
- OnDoorAccess
- OnIntercom
- OnIntercomCooldownCheck
- OnPocketDimensionExit
- OnPocketDimensionEnter
- OnPocketDimensionDie
- OnThrowGrenade
- OnPlayerInfected
- OnSpawnRagdoll
- OnLure
- OnContain106
- OnMedkitUse
- OnShoot
- On106CreatePortal
- On106Teleport
- OnElevatorUse
- OnHandcuff
- OnGeneratorUnlock
- OnGeneratorAccess
- OnGeneratorInsertTablet
- OnGeneratorEjectTablet
- On079Door
- On079Lock
- On079Elevator
- On079TeslaGate
- On079AddExp
- On079LevelUp
- On079UnlockDoors
- On079CameraTeleport
- On079ElevatorTeleport
- On079StartSpeaker
- On079StopSpeaker
- On079Lockdown
- Server Round Events
- Team Events