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
(Created page with "{{This is a|name=world_items|e0|engine=1|game=Half-Life}} ==Description== This entity spawns a specific item at its location.<br>It gives four types of items: Antidote, Secur...")
 
(Blasted template-handled period)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{This is a|name=world_items|e0|engine=1|game=Half-Life}}
{{TabsBar|main=World items}}
{{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}} }}
{{this is a|point entity|name=world_items|engine=GoldSrc|game=Half-Life}}


==Description==
==Description==
Line 6: Line 9:
==Key Values==
==Key Values==
{{Hl1_kv_targetx}}
{{Hl1_kv_targetx}}
{{KV|Types|intn=type|choices|(Default 42)}}
{{KV|Types|intn=type|choices|}}
:{| class="standard-table"
:{| class="standard-table"
|-
|-
! # !! Name
! # !! Name
|-
|-
| 42 || Antidote
| 42 || [[item_antidote (GoldSrc)|item_antidote]]
|-
|-
| 43 || Security Card
| 43 || [[item_security (GoldSrc)|item_security]]
|-
|-
| 44 || Battery
| 44 || [[item_battery (GoldSrc)|item_battery]]
|-
|-
| 45|| Suit
| 45 || [[item_suit (GoldSrc)|item_suit]]
|}
|}
{{Hl1_kv_weapon}}
{{Hl1_kv_weapon}}


[[Category:Entities]]
[[Category:Entities]]

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.