Ricebug on 26/7/2013 at 19:26
When an AI is killed, the game points to the OBJNAMES.STR and finds Name_Corpse: "Corpse".
When an AI is KO'd, the same thing happens, but this time, it uses Name_UncBody: "Unconscious Body".
For some reason, none of my AI have the Unconscious Body tag when I pick up the body. If they're dead, however, "Corpse" does appear. Is there an easy way to fix this? I don't think I can just arbitrarily add Name_UncBody: "Unconscious Body" to all my AI. Or can I? What if one of the guard's is named Fred?
R Soul on 26/7/2013 at 20:15
Have a loot in the M-KnockedOut metaproperty. There should be an inventory > object name property with a value of Name_UncBody
If you've given a name to a specific AI, fixing the metaprop won't change things for him. When you look at an object's properties, priority goes from top to bottom. The objects properties are at the top, and thus they take priority. Underneath them are the properties within any metaprops, and underneath that is the parent archetype, with its own properties. Etc.
If the metaprop already had the object name property, it means each specific AI must have it too (because it will be above the one in the KO metaprop, thus overriding it). You might have made a mistake with the hilight_add_prop command or the new Hierarchy Op functions, which can add a property to all descendants.