Unit export example - Tomash667/carpg GitHub Wiki

Currently supported blender version: 2.78-2.79 (2.80+ require total rewrite of python scripts).

Some animation and empty names are hardcoded to use polish names (hopeful it will be fixed at some point).

Animation names

Required animations

  • base - rest position
  • stoi - standing
  • idzie - walk
  • biegnie - run (optional if unit can't run - slow flag)
  • w_lewo - rotate left
  • w_prawo - rotate right
  • bojowy - in combat, standing
  • umiera - dying
  • trafiony - hurt animation (optional if unit have dont_suffer flag)
  • atak1..5 - attack

Humanoid animations

  • wyjmuje - takes out/hide weapon
  • je - eat
  • pije - drink

Special points

  • bron - weapon in hand
  • schowana - weapon on belt
  • centrum - loot/blood center
  • hitbox1..5 - hitbox for attack1..5 (used when unit fight unarmed)
  • hitbox - if hitbox1..5 is not found it will use general one

Bone groups

Simple units (non humanoid) require only 1 bone group, humans require 2 groups to allow two animations at same time (for example walking & eating). To allow that 2 bone groups need to be set like on image:

All lower bone groups should be assigned to "bottom", all upper to "top#bottom" (after # sign there is parent group name).

Currently units with more then 2 bone groups are not supported.