How To Change Enemy Skeletal Mesh?
Posted: Sat Jan 19, 2019 12:54 pm
I'm just dipping my toes into XCOM2 modding, and to say the very least, I'm frustrated.
A lot of the documentation is super vague and cheesy, and most tutorials are from 2016 and don't really answer my questions.
I'm simply attempting to start with what I thought was easy (changing the enemy appearance to something custom), but I'm at a dead end.
I've gotten to the point where I've rigged my custom model with the XCOM2 skeleton, and he works with all the ANIMS.
I went through the XCOM_Alien documentation that comes with the editor and it says to simply replace the skeletal mesh field in your desired units ARC (archetype).
Obviously I can do this, but its not going to save when I close the editor right? So my assumption is I have to have a bit of code to go in and change it.
(From my minimal C# coding knowledge, I assume it would be something like this:)
XAdventTrooper.Archetypes.GameUnit_AdvSoldier_M.SkeletalMesh = (Insert Custom Skeletal Mesh Path Here);
I've searched high and low on the internet and the only promising thing I could find was an old forum post on here from 2016 about someone asking the same question. The admin pointed him to the AlienPack script and config, which I have dug through and don't really see how anything about the appearance is called or changed.
(Old Forum Post I Found: https://pavonisinteractive.com/phpBB3/v ... hp?t=23302)
Any help or advice would be awesome.
A lot of the documentation is super vague and cheesy, and most tutorials are from 2016 and don't really answer my questions.
I'm simply attempting to start with what I thought was easy (changing the enemy appearance to something custom), but I'm at a dead end.
I've gotten to the point where I've rigged my custom model with the XCOM2 skeleton, and he works with all the ANIMS.
I went through the XCOM_Alien documentation that comes with the editor and it says to simply replace the skeletal mesh field in your desired units ARC (archetype).
Obviously I can do this, but its not going to save when I close the editor right? So my assumption is I have to have a bit of code to go in and change it.
(From my minimal C# coding knowledge, I assume it would be something like this:)
XAdventTrooper.Archetypes.GameUnit_AdvSoldier_M.SkeletalMesh = (Insert Custom Skeletal Mesh Path Here);
I've searched high and low on the internet and the only promising thing I could find was an old forum post on here from 2016 about someone asking the same question. The admin pointed him to the AlienPack script and config, which I have dug through and don't really see how anything about the appearance is called or changed.
(Old Forum Post I Found: https://pavonisinteractive.com/phpBB3/v ... hp?t=23302)
Any help or advice would be awesome.