Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Chaning a Actor Skin


AlienX
 Share

Recommended Posts

Hello everyone...

 

me and kosy have spent about an hour, maybe more on this...

 

How do i change a actor skin in SA?

 

Note:

0352 2 set_actor_skin

-/- yes P: $actorID, TEXT (ModelName)

- changes skin for specified actor

 

This does NOT work for me...

 

Thanks to all who help!!!

 

Link to comment
Share on other sites

superglitch

 

0352: set_player_skin $PLAYER_CHAR MODEL(You put the modelname of the skin)0353: refresh_actor_skin $PLAYER_CHAR

 

 

If not that search the main.scm for skin you'll come up with a bunch of crap

Link to comment
Share on other sites

Those are the right opcodes, but they refer to actors. Don't use them with $PLAYER_CHAR.

 

Also (and I haven't yet figured out when it matters), those opcodes refer to models despite originally believed to address the skins. I'm not sure why they're labelled as player and/or model unless they were copied wrong.

Link to comment
Share on other sites

0352: set_player_skin $PLAYER_CHAR MODEL(You put the modelname of the skin)0353: refresh_actor_skin $PLAYER_CHAR

 

 

If not that search the main.scm for skin you'll come up with a bunch of crap

This is for players. not actors sad.gif...

 

thanks anyway man

 

 

Those are the right opcodes, but they refer to actors. Don't use them with $PLAYER_CHAR.

 

Also (and I haven't yet figured out when it matters), those opcodes refer to models despite originally believed to address the skins. I'm not sure why they're labelled as player and/or model unless they were copied wrong.

 

 

i dont really get what u mean, but im not using player_char, its a create_actor var im pointing the opcode too...

Link to comment
Share on other sites

The opcode (0352 and 0353 in this case) is all the game cares about when deciding WHAT to do. That other stuff like set_player_skin is just there to help humans get it. And even though it says set_player_skin, that is an actor opcode. That's what I was saying.

 

In the future, just search your code. Or search the opcode database. Those would've probably said actor. Barton's GTA3 MB does, so I doubt the man forgot along the way and misnamed it.

Link to comment
Share on other sites

thanks for speedy reply...

 

i did search the orignal SCM, and the opcode from the database i use never returned a result... so thats why i posted here smile.gif

 

 

all i shall say really is that i guess the opcode is wrong, or the game would not crash when i tryed to use it

 

if there is a known way on san andreas, i would love to know... if there isnt R* Sucks ass

Edited by AlienX
Link to comment
Share on other sites

The opcode isn't wrong. It's been used since the first mission of GTA3. Tell us what you did so we can help you.
Link to comment
Share on other sites

NathanHenry

Yeah this is what Ad_tec did in order to get his mod the SA Player Selection mod working. How would I do this but with Claude Speed. And I know it is possible because he is one of the Actor skins so how would I do this with Claude Speed.

Link to comment
Share on other sites

superglitch

if there isnt R* Sucks ass

 

Really because without R* you wouldn't be posting on this forum.

 

I actually if no one noticed it put set_player_skin and refresh_actor_skin

Link to comment
Share on other sites

I actually if no one noticed it put set_player_skin

We noticed. See above the multi-post confusion as I tried to coverup your error. That opcode is set_actor_skin.

Link to comment
Share on other sites

You still do not understand AlienX question I am afraid.

 

1. you select the skin for your player using arrow-keys.

0004: @1 = 9...289 (much code behind this)

..

009A: $showskin = create_actor 24 @1 at $x $y $z

when you press enter the following code will be executed and the player becomes the choosen character

09C7: $Player_Char @1

 

2. the other players now want to see the new skin for that player. At the beginning all actors have the same CJ skin:

$1 = create_actor 24 #NULL at $x $y $z

$2 = create_actor 24 #NULL at $x $y+2 $z

...

$31= create_actor 24 #NULL at $x $y+60 $z

Currently it is neccessary to execute the following code to change the skin for actor XX because 09C7: $XX @1 crashes the game:

009B: destroy_actor_instantly $XX0247: request_model @1009A: $XX = create_actor  24 @1 at $x $y+(XX-1)*2 $z

 

 

Summary:

 

09c7: is the best idea here but it only works with the $Player_Char NOT WITH $Actor_Char0352: this command should be called 'set_"named"_actor_skin' because you need to use the real name of the skin and not the skin number.0353: is the follow-up for opcode 0352:

 

 

Is there an opcode which accepts $Actor_Char and Skin ID (from peds.ide) as parameters ?

Thanks for your ideas.

Link to comment
Share on other sites

Not that I'm aware of. When I was making Chameleon, I found that trying to change the player into any "common" ped crashed the game. If I however extracted the DFF/TXD and readded them under a different name, they worked fine. Only variable there is their listing as peds.
Link to comment
Share on other sites

sure, who else... ph34r.gif

 

I have heard that you temporarily don't use the character selection menu for the next release. But every player has its favorite character therefore you should build in a dropdown menu that the player can use before game launch if he wants a specific skin or a random one.

 

Keep on the good work...

Link to comment
Share on other sites

sure, who else... ph34r.gif

 

I have heard that you temporarily don't use the character selection menu for the next release. But every player has its favorite character therefore you should build in a dropdown menu that the player can use before game launch if he wants a specific skin or a random one.

 

Keep on the good work...

ne its not his FAV, the skins are depedent on Connection ID for now smile.gif

Link to comment
Share on other sites

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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.