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
(tabs)
No edit summary
Line 1: Line 1:
{{tabs|world_items|goldsrc = 1|source = 1}}
{{tabs|world_items|goldsrc = 1|source = 1}}
{{Ent not in fgd}}
{{Ent not in fgd|nolink=1|because=it is almost useless}}
{{obsolete}}
{{obsolete}}
{{CD|CWorldItem|file1=item_world.cpp}}
{{CD|CWorldItem|file1=item_world.cpp}}

Revision as of 00:09, 24 August 2024

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. Goldsrc left over.

Keyvalues

type (type) <choices>
Type of item to spawn.
Note.pngNote:To appear, entity from this list must be present in your game. For example, in Half-Life: Source Half-Life: Source, Black Mesa Black Mesa and Half-Life 2 Half-Life 2 only battery and suit can be spawned.