# Full Asset Swapping

Instead of string swapping, previously mentioned [<mark style="color:blue;">here</mark>](broken-reference), does full asset swapping swap the whole asset. This means you can swap a whole body asset to another body asset without needing to swap each string inside the asset. This is use full for quickly swapping skins and opens up more possibilities for swapping things such as perfect pickaxes which weren’t possible by just swapping strings.&#x20;

```
#file plugin

sign: "Author", "Tamely"
sign: "Name", "Assault Trooper to Blaze Body and Head"

from_ar = import "/Game/Athena/Heroes/Meshes/Bodies/CP_015_Athena_Body"

system.Print("Swapping body part one...")
from_ar.Seek("/Game/Characters/Player/Female/Medium/Bodies/F_Med_Soldier_01/Skins/TV_19/Materials/F_MED_Commando_Body_TV19")
system.Print("Found body part one")
from_ar.Write<string>("/Game/Characters/Player/Female/Medium/Bodies/F_MED_Renegade_Raider_Fire/Materials/MI_F_MED_Renegade_Raider_Fire_Body")
system.Print("Swapped body part one")

system.Print("Swapping body part two...")
from_ar.Seek("F_MED_Commando_Body_TV19")
system.Print("Found body part two")
from_ar.Write<string>("MI_F_MED_Renegade_Raider_Fire_Body")
system.Print("Swapped body part two")

system.Print("Swapping heads")
from_ar = import "/Game/Athena/Heroes/Meshes/Heads/F_MED_ASN_Sarah_Head_01_ATH"
to_ar = import "/Game/Characters/CharacterParts/Female/Medium/Heads/CP_Head_F_RenegadeRaiderFire"

from_ar.Swap(to_ar)
system.Print("Swapped heads")
```

Shown above is an example of a plugin using both string swapping and full asset swapping.

If we take a look at the heads we can see how its written in radon. First we import the first asset we want to swap; with `from_ar = import` then we import the second asset with `to_ar = import` .\
Then to swap the two assets we write `from_ar.Swap(to_ar)` .\
Now we have succesfully swapped both the body with strings and the head with assets.

<figure><img src="https://2783591982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHxXFrMbDp9XYyMiRPamu%2Fuploads%2Fy9hTv4TpnW6ndKTmsMoI%2FAC37D209-0887-4E0A-AA71-97D5747F2FDD.png?alt=media&#x26;token=c590e3e6-d1af-432e-bde6-e5c91efbf1f9" alt=""><figcaption></figcaption></figure>
