world_items
Jump to navigation
Jump to search
Note:Only used in
Half-Life: Source maps
![]() |
---|
CWorldItem |
![]() |


This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
It has since been deprecated by: the individual item_ entities, namely item_battery and item_suit.
It has since been deprecated by: the individual item_ entities, namely item_battery and item_suit.
world_items
is a point entity available in all Source games. A leftover from GoldSrc. This entity spawns a specific item at its origin. Probably left in so that porting
maps to
is simpler and doesn't need much changes and is left-over since.


Locations Expand
Keyvalues
- type (type) <integer choices>
- Type of item to spawn.
- 44: Battery (item_battery)
- 45: Suit (item_suit)
Note:To appear, entity from this list must be present in your game.
Note:The spawned entity will inherit this entity's targetname, target and spawnflags and the world_items is removed afterwards.
Warning:It's removed inside its Spawn function using UTIL_RemoveImmediate which causes a crash if trying to spawn it via ent_create or SpawnEntityFromTable vscript function. SpawnEntityGroupFromTable can still spawn it and if entity script is provided it won't run the OnPostSpawn hook.