Skip to content

Hand items

For creatorsAdd-on 2.2.2+

A hand item is anything a body holds: a pistol, a phone, a golf club, a box. Make Hand Item gives it grips, the points the hands go to. Tag it, and the player can pick it up, hold it by those grips and use it with the fire button.

The item tools are in Properties ▸ Object ▸ Simulacrum. Make Hand Item is in the Make menu at the top of that panel. Once the object is a hand item, the Item panel below shows its grips, its moving parts and its clips. It also shows when you select a piece of the item or one of its grips.

  1. Model the item, then apply its scale (Ctrl+A ▸ Scale). For a gun, see Model a gun first.
  2. Select it. It must be a mesh.
  3. In Properties ▸ Object ▸ Simulacrum, open Make ▸ Make Hand Item and choose its kind.
  4. Move the grips to fit. They are placed from the item’s bounds, so they are a first guess.

The grips are Empties, children of the item: grip.r for the right palm, grip.l for the other hand, and muzzle for where a gun’s shots leave. Run Make Hand Item again and the grips you already have stay where you put them.

Menu entry Where the grips go How it lies in the hands
Pistol grip.r under its origin, grip.l beside it, muzzle at its front (−Y) Along the right forearm
Rifle grip.r toward its back, grip.l toward its front, muzzle at its front (−Y) From the right palm toward the left
Tool (a bat, an axe) grip.r near the low end of its longest side, grip.l 10 cm further along From the right palm toward the left
Box (held by both sides) grip.r on one side, grip.l on the other Between the palms
Small Item (a phone, a toothbrush, flowers) grip.r 30 % along its longest side from the low end Along the right forearm
Club (a golf club, the hands stacked) grip.l 5 % along from the low end, grip.r just past it From the right palm toward the left
Pole (a fishing rod, a broom) grip.r 12 % along from the low end, grip.l 42 % along From the right palm toward the left

“The low end” is the end of the longest side with the lowest coordinate. Model the handle there, or move the grips.

Make Hand Item also writes two tags on the item:

Tag Values What it does
item.kind pistol · rifle · tool · box · small · club · pole Marks the object as an item. The item, its grips and its moving parts export together as one file
item.axis forearm · hands · between How its length lies in the hands: along the right forearm, from the right palm toward the left, or between the palms

You can also add the grips by hand: Empties named grip.r, grip.l and muzzle, anywhere under the item. A name such as grip.r.001 counts as grip.r.

Model a gun pointing down −Y, with up +Z and its origin where the right hand holds it. That is the way a body faces in Blender, and every preset for guns and their moving parts expects it. Then choose Make ▸ Make Hand Item ▸ Pistol or Rifle.

To use the gun as a weapon, see Weapons.

A hand item becomes something the player picks up when you make it a smart object that can be carried. Add these to the item (Object Properties ▸ Custom Properties):

Tag Values What it does
smart A kind, such as phone Makes it a smart object
smart.carry hand · both · pistol · rifle · bat It can be picked up, and how it is carried: one hand, a box in both hands, or a weapon’s hold
smart.use.label Text, such as Pick up the phone The prompt the player sees. Default: Pick up the <kind>
item.thing A thing set’s kind, such as phone The body clips for holding and using it. See The item’s thing set

In play:

  • E picks it up. The hero puts its weapon away while it carries the item.
  • The fire button uses it: the item plays its own use clip, at most once every 0.6 s.
  • G drops it.

To give the item a use clip, make its moving parts and key the clip with Make Item Clip ▸ Use. See Moving parts.

More about smart objects is on Smart things.

How the body holds and uses an item comes from a thing set: a small set of body clips named by what they do.

Clip What it does
hold The upper body’s pose while it holds the item
use_<x> A one-shot on the upper body when the player uses it, such as use_call for a phone. The first use_ clip plays

To make one:

  1. Pose and bake the clips on the reference body, named hold and use_<x>. See Animate a character.
  2. Export them with Export Clips as <kind>.glb, such as phone.glb. You get phone.glb and phone.json.
  3. Put both files in the things folder beside the hero’s clip set. See Clip sets.
  4. Tag the item item.thing = <kind>.

The hero holds the item by its grips when all of these are true:

  • the item has a grip.r;
  • its item.thing names a thing set the hero has loaded;
  • the hero plays a clip set: the player is signed in to MegaCity, or the link has ?clipset=.

The body then takes the hold pose. The right palm closes on grip.r, the item lies the way its item.axis says, and the left hand goes to grip.l. The fire button plays the first use_ clip on the body along with the item’s own use clip.

Otherwise the hero carries the item in a plain carrying pose, and the fire button still plays the item’s use clip.

  • The item must be a mesh with at least one grip or moving part. Otherwise it does not export as one item, and its grips and parts become objects of their own.
  • No thing set, no grip hold. Without item.thing, or when its thing set is not beside the hero’s clip set, the item is carried in the plain pose.
  • Your own thing sets need your own clip set. A thing set you make works beside a clip set you serve yourself (?clipset=). The members’ clip set carries only the thing sets that come with it.
  • smart.carry alone is not enough. A carried item also needs smart.
  • G is Drop while you carry something, and it wins over a scene action bound to G. Bind fire to F and the mouse (input.fire = keys:KeyF ; mouse:left), not to G.
  • Grips are placed from the bounds. The guess assumes the item lies the way its kind expects. Check them, and move them.

To try it, play ▶ the items lab: press E at the phone on the table to pick it up, then fire to flip its lid open and shut. The tutorial Items: moving parts builds the same phone step by step.