CREATE YOUR WORLD
Players & Characters: Advanced

API to change ZEPETO character to basic body type

6min
when a zepeto avatar entering the world is wearing a body modification item or has chosen an excessively large or small body shape, it can hinder the gameplay in the world using the api introduced in this guide, you can change the zepeto character back to its default body shape ❗️ caution the zepeto character controller package is available from version 1 11 1 onwards api description getbodymodifierproperties() returns information about which part of the body the zepeto character is wearing a body modification item deformdefaultproperties() this api removes the body modification items worn by the zepeto character and changes it back to its default body shape deformdefaultcostume() this api removes the body modification items worn by the zepeto character, changes it to its default body shape, and dresses it in the default zepeto costume \ it can also be applied at the zepeto players level in this case, all zepeto players entering the multiplayer world will have their body modification items removed and will be dressed in the default zepeto costume zepetopropertyflag enum none = 0, skin = 1, skintone = 2, skindetail = 3, face = 4, eye = 5, eyelens = 6, eyebrow = 7, beard = 8, mustache = 9, eyeshadow = 10, eyeliner = 11, eyelash = 12, blusher = 13, nose = 14, mouth = 15, lips = 16, hair = 17, clothesglasses = 18, clothestop = 19, clothesbottom = 20, clothesshoes = 21, clothesdress = 22, background = 23, roomwallpaper = 24, roomfloor = 25, roombottom = 26, roomtopleft = 27, roomtopright = 28, roommiddleleft = 29, roommiddleright = 30, point = 31, freckles = 32, facehair = 33, doubleeyelid = 34, nailart = 35, clothessocks = 36, clothesglove = 37, accessorybracelet = 38, accessorynecklace = 39, accessoryearring = 40, accessoryring = 41, accessoryheadwear = 42, accessorypiercing = 43, boothbackground = 44, lut = 45, accessorymask = 46, facepainting = 47, accessorybag = 48, accessorywing = 49, clothescape = 50, clothesextra = 51, mannequinface = 52, wrinkleforehead = 53, wrinkleeye = 54, wrinklemouth = 55, doubleeyelidbottom = 56, wrinklemongo = 57, accessorytail = 58, accessoryeffect = 59, clothesdeform = 60, hairextensions = 61, makeupset = 62, facecontouring = 63, basemodel = 64, creatorlens = 65, basedeform = 66 example script please refer to the following example script import { zepetoscriptbehaviour } from 'zepeto script'; import { zepetocharacter, localplayer, zepetoplayers } from 'zepeto character controller'; import { zepetopropertyflag } from 'zepeto'; export default class deform extends zepetoscriptbehaviour { private localplayer localplayer; private itemproperties zepetopropertyflag\[] start() { zepetoplayers instance onaddedlocalplayer addlistener(() => { this localplayer = zepetoplayers instance localplayer; // 1 local character code to print where the body shape change item is equipped this itemproperties = this localplayer zepetoplayer character getbodymodifierproperties(); console log(this itemproperties); // 2 local character code to unequip body shape change item this localplayer zepetoplayer character deformdefaultproperties(); // 3 local character code to unequip body shape change items and put on default outfit this localplayer zepetoplayer character deformdefaultcostume(); }); // 4 code to unequip all players' body shape change items and put them in default outfits zepetoplayers instance onaddedplayer addlistener(() => { zepetoplayers instance deformdefaultcostume(); }); } } script description 1\) the body modification item slot information worn by the local player is saved in this itemproperties by getbodymodifierproperties() and that information is printed to the console 2\) all body modification items worn by the local player are removed by deformdefaultproperties() , and the character is changed back to its default body shape 3\) by deformdefaultcostume() , all body modification items worn by the local player are removed, and they are changed to the appearance of wearing the default zepeto costume 4\) the code below ensures that all players entering the world will have all their body modification items removed and will be dressed in the default zepeto costume however, the multiplayer settings and basic server client script implementation must be completed in advance zepetoplayers instance onaddedplayer addlistener(() => { 	zepetoplayers instance deformdefaultcostume(); }); animated avatar faces are also classified as body modification items therefore, when using the deformdefaultproperties() , deformdefaultcostume() apis, please note that the appearance of animated avatars entering the world will also change