Cage Trap

From PZwiki
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Cage Trap
CageTrapAnim.gif
[[File:{{{icon2}}}|Cage Trap|]]
[[File:{{{icon3}}}|Cage Trap|]]
[[File:{{{icon4}}}|Cage Trap|]]
[[File:{{{icon5}}}|Cage Trap|]]
General
Category
Trapping
EncumbranceMoodle Icon HeavyLoad.png
1.0
Size
1 tile
Function
Catch animals
Properties
Health
50
Strength
20
Animals
Rabbit.png Squirrel.png
Crafting
Ingredients
Wire (5 units)
Destroy
Products
Technical
Item ID(s)
Base.TrapCage
Tile ID(s)
constructedobjects_01_8

A cage trap is a medium-sized trap used by journeyman trappers.

Usage

A cage trap is one of several traps used in trapping to catch a variety of wildlife.

Trapping

Main article: Trapping

Cage traps can be used to catch rabbits and squirrels.

Catch chance:
Rabbit 40%
Squirrel 40%

Crafting

To craft a cage trap, the player must have picked either the "Park Ranger" occupation or "Hunter" trait during character creation. Otherwise, it will be learned after reading The Hunter Magazine Vol.3 and craftable after reaching trapping level 3.

Trapping

Main article: Trapping
Product XP gained Skill(s) Recipe Ingredient 1
TrapCage.png
Cage Trap
0 XP Trapping 3 The Hunter Magazine Vol. 3 Wire.png
Wire x5
(consumed)

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Item

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item TrapCage
    {
        DisplayCategory = Trapping,
        Weight	=	1,
        Type	=	Normal,
        DisplayName	=	Cage Trap,
        Icon	=	TrapCage,
        Trap    =   true,
        MetalValue = 10,
    }

Tile

Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua

Retrieved: Build 41.78.16
local cageTrap = {};
cageTrap.type = "Base.TrapCage";
cageTrap.sprite = "constructedobjects_01_8";
cageTrap.northSprite = "constructedobjects_01_11";
cageTrap.closedSprite = "constructedobjects_01_9";
cageTrap.northClosedSprite = "constructedobjects_01_10";
cageTrap.trapStrength = 20;
cageTrap.destroyItem = "Base.Wire";
table.insert(Traps, cageTrap);

See also