[#modding] It would be nice if animatable objects supported an optional BodyCategory proper...

Issue #8780 new
Freehold Games Bot Account created an issue

Marked for crossposting by: books is on break

Message (jump):

<illuminatiswag> It would be nice if animatable objects supported an optional BodyCategory property/tag, similar to BodyType, but applying a certain categorization to all limbs (e.g. stone, metal, mechanical, etc.), instead of having to add a whole new anatomy with the category attached like WoodenHumanoid. I'm currently using a Harmony patch to do this in my Animatable Statues mod, as follows:
[HarmonyPostfix] static void Postfix(GameObject frankenObject) { var cat = frankenObject.GetPropertyOrTag("AnimateStatue_BodyCategory", "a"); if (cat != "a") { var code = BodyPartCategory.GetCode(cat); frankenObject.Body.CategorizeAll(code); } } }

Comments (3)

  1. Log in to comment