Jump to content

Skin change


dashe123

Recommended Posts

What function or script do I use if I want to make something like this: If you step on a marker it changes your skin from skin A to skin B and when you step on it again it changes your skin from skin B to skin A?

P.S. I already made a "from skin A to skin B" script but how do I make it "from skin B to skin A" (to get your default skin back)?

Link to comment
  • Discord Moderators

On hit:

skin = not skin 

skin false = some skin

skin true = some other skin

just one method. probably kinda weird but just to demonstrative a way to toggle in LUA.

why not just something like

if (getElementModel(player) == skinA) then setElementModel(player, skinB) else setElementModel(player, skinA) end 

Link to comment
  • 5 weeks later...

That's pretty accurate based on what I know. Dashe, did you ever get the fix implemented in your mod scheme? I have been discovering lately a new way to organize collections of skins and their coding data through a process called ediscovery. Let me know if you got the fix implemented so that I can alter the data I have in the storage system for this particular skin.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...