How change equipment in Runtime
To change a character's visual equipment at runtime under the ACC plugin, you simply need to retrieve the EquipMgr
and call utility functions such as ChangeEquipIntParam
.
You can also change the color using ChangeEquipColorCustom
.
Remove an equipment
GetPlayerCharacter
is an example, we assume it's the character of your choice. You need to retrieve the ACCCreationComponent
component.
From this component we call ChangeEquipIntParam
and set to 0
to remove the equipment
Change/Set an equipment
From this component we call ChangeEquipIntParam
and set to 1001
to change the equipment
Change an equipment color
From this component we call ChangeEquipColorCustom
to change the first color (Color Index) of "Top" equipment