2DWorlds Forums
Changing someone's skin - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: Changing someone's skin (/showthread.php?tid=7398)



Changing someone's skin - Duck - 07-30-2011

I am making a game and I want the players to have a specific skin (The one I'm wearing) when they enter

I know how to change the skin to this one I'm wearing, but is there any way to make them always have this skin on whenever they play, even if I change my skin?


RE: Changing someone's skin - Qwertygiy - 07-30-2011

Upload it as a skin in the Skins catalog, and then

[lua]
--STUFF
player.Character.Skin = "http://buildism.net/asset/file/####.png"
--STUFF
[/lua]


RE: Changing someone's skin - Duck - 07-30-2011

(07-30-2011, 02:15 PM)Qwertygiy Wrote: Upload it as a skin in the Skins catalog, and then

[lua]
--STUFF
player.Character.Skin = "http://buildism.net/asset/file/####.png"
--STUFF
[/lua]

How would I find that file though?

Or would I be able to upload the skin template to another imagehost and put the image url there?


RE: Changing someone's skin - Qwertygiy - 07-30-2011

The ### is the ID of the skin. For example,

http://buildism.net/items/Name/1337

would be

http://buildism.net/asset/file/1337.png