Full Asset Swapping
Instead of string swapping, previously mentioned here, 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.
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.
Last updated