Level Editor/Entities/Supply Pickup

From TeamSpec Wiki
Jump to navigation Jump to search
Supply Pickup
Made with Functional > Supply Pickup
What it is A health or ammo pack that comes back after it is taken
In the game Yes, it is exported with the map

A supply pickup is a health or ammo pack that belongs to the level. A player walks over it to take it; a new one appears after a while. It works with no script at all.

Placing one

  1. Choose Functional > Supply Pickup (click to place).
  2. Click where the pack should rest.
  3. Set its Pool, Size and Respawn Seconds in the inspector.

Inspector

Setting Type Default What it does
Pool List Health Health or Ammo.
Size List Medium Small, Medium or Large. A small pack refills a quarter of the maximum, a medium half, a large all of it.
Respawn Seconds Seconds, 1 to 120 or more 10 How long after a pack is taken the next one appears.

In the game

A player who is already full does not take a pack, so it stays for somebody who needs it. To a gamemode script a station's pack is an ordinary pickup: _can_collect may refuse it and _pickup_collected hears it taken. Removing one with api.despawn_pickup does not remove the station; its next pack comes back on the usual timer. See Pickups.

Related pages

TeamSpec Level Editor
Basics Getting started · Interface · Viewport and camera · Selecting and hiding · Keyboard shortcuts · Settings · Map Config · Troubleshooting
Menus File · Edit · View · Tools · Functional
Panels Scene tree · Inspector · Materials · Props · Snapping · UV editor · Displacement · Terrain
Tools Move, Rotate and Scale · Box · Sphere · Cylinder · Prism · Stairs · Spiral Stairs · Spiral Tower · Arch · Path Brush · Plane · Terrain · Clip · Duplicate · Ruler and Cordon · Edit Vertex and Edge · Edit Face · Loop Cut · Material Brush · Vertex Color Brush · Displacement · Prop Path
Entities Brush · Zone · Group · Mirror Node · Prop · Spawn Point · Supply Pickup · World Boundary · Lights · Water · Sounds · Anchor Platform · Payload Track · Boss Spawn · Map Marker · World Text · Decal · Door · Button · Logic entities · 3D Skybox · Nav Region
Workflows Your first map · Brushes and CSG · Materials and UVs · Lighting and lightmaps · Bots and navigation · Mirrored maps · Outputs and logic · Custom assets · Playtesting · Exporting and publishing · Importing Source maps
Scripting Overview · Server rules · Client HUD · Bots · Teams and spawning · Zones · Pickups · Payload tracks · Map entities · Sandbox limits · Testing · King of the Hill · Team Deathmatch · API reference · What a script may use