This article's documentation is for the "GoldSrc" engine. Click here for more information.

World items (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Also obsolete in goldsus; the individual item_ ents have the same capabilities.)
(Blasted template-handled period)
 
Line 1: Line 1:
{{TabsBar|main=World items}}
{{TabsBar|main=World items}}
{{CD|CWorldItem|goldsrc=1}}
{{CD|CWorldItem|goldsrc=1}}
{{obsolete|replacement=the individual {{mono|item_}} entities, namely {{ent|item_antidote|engine=goldsrc}}, {{ent|item_security|engine=goldsrc}}, {{ent|item_battery|engine=goldsrc}}, and {{ent|item_suit|engine=goldsrc}}.}}
{{obsolete|replacement=the individual {{mono|item_}} entities, namely {{ent|item_antidote|engine=goldsrc}}, {{ent|item_security|engine=goldsrc}}, {{ent|item_battery|engine=goldsrc}}, and {{ent|item_suit|engine=goldsrc}} }}
{{this is a|point entity|name=world_items|engine=GoldSrc|game=Half-Life}}
{{this is a|point entity|name=world_items|engine=GoldSrc|game=Half-Life}}



Latest revision as of 09:46, 12 May 2025

edit
C++ Class hierarchy
CWorldItem
CBaseEntity
C++ items.cpp
Obsolete-notext.png
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_antidote, item_security, item_battery, and item_suit.

world_items is a point entity available in Half-Life Half-Life.

Description

This entity spawns a specific item at its location.
It gives four types of items: Antidote, Security Card, Battery and Suit.

Key Values

Target (target) <targetname>
The targetname of an entity this entity will trigger when activated.
Delay before trigger (delay) <integer>
Delay in seconds before firing the targeted entity.
Killtarget (killtarget) <targetname>
Entity to remove when activated.
Types (type) <choices>
# Name
42 item_antidote
43 item_security
44 item_battery
45 item_suit


Name (targetname) <string>
The targetname that other entities refer to this entity by.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Flags

Not In Deathmatch : [2048]
Prevent this entity from attempting to spawn when deathmatch (multiplayer) is enabled.