This article's documentation is for anything that uses the Source engine. Click here for more information.

World items: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(only in goldsrc)
No edit summary
Line 9: Line 9:
:*44: Battery ({{ent|item_battery}})
:*44: Battery ({{ent|item_battery}})
:*45: Suit ({{ent|item_suit}})
:*45: Suit ({{ent|item_suit}})
{{note|To appear, entity from this list must be present in your game. For example, in {{hls|4}}, {{bms|4}} and {{hl2|4}} only battery and suit can be spawned.}}
:{{note|To appear, entity from this list must be present in your game. Items it can spawn are only present in {{hls|4}}, {{hl2|4}} or {{bms|4}}.}}
}}
}}

Revision as of 23:55, 11 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it is almost useless.
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
C++ Class hierarchy
CWorldItem
CBaseAnimating
CBaseEntity
C++ item_world.cpp

world_items is a point entity available in all Source Source games. A leftover from GoldSrc. This entity spawns a specific item at its origin.

Keyvalues

type (type) <choices>
Type of item to spawn.
Note.pngNote:To appear, entity from this list must be present in your game. Items it can spawn are only present in Half-Life: Source Half-Life: Source, Half-Life 2 Half-Life 2 or Black Mesa Black Mesa.