Changing Player Texture

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

AiRdAncE

-=The HarHar Man=-
Jan 1, 2002
9
0
0
50
The Netherlands
Visit site
Hi,

Did you think about the MultiSkin() function ?

In the PlayerPawn class it is used like this:

Code:
if ( Level.Game.bCanChangeSkin ){
	Self.static.SetMultiSkin(Self, SkinName, FaceName, TeamNum );
}

Good luck with this !
 

BondJamesBond

New Member
Sep 23, 2001
43
0
0
Visit site
Hi!

I have always directly accessed the MultiSkin properties when I code. Try this:

PlayerPawn.MultiSkin[0] = Texture'r6.Terrorist.terr01'
PlayerPawn.MultiSkin[1] = Texture'r6.Terrorist.terr02'
PlayerPawn.MultiSkin[2] = Texture'r6.Terrorist.terr03'
PlayerPawn.MultiSkin[3] = Texture'r6.Terrorist.terr04'

You can place this also in the DefaultProperties block (change the brackets to parentheses)

GOOD LUCK!
-Rainbow Six
 

BondJamesBond

New Member
Sep 23, 2001
43
0
0
Visit site
In response to that...


When you refer to a texture, you use the following usage:

Texture'MyMod.MyGroup.MyTexture'

If you don't have a group assigned, then leave out MyGroup.

Yell if that doesn't help.

-Rainbow Six
 

MecaNitroPenguin

Errrr...
Dec 24, 2001
44
0
0
Visit site
Ok the multiskin thing rainbow6 mentioned doesn't work because the multiskin array doesn't exist(at least that's what ucc said) and I can't use texture'mymod.mygroup.mytexture' with multiskin because it needs a string for skinname so:

What do I have to put for the skinname i.e. what string mymod.mygroup.mytextexture doesn't work I've tried it and is there another way to do this without the multiskin command
 

Mr.Mitchell

New Member
Sep 5, 2001
140
0
0
the Netherlands
home.ict.nl
Try this

Taken from the class UTTeleportEffect

MultiSkins(0)=Texture'Botpack.FlareFX.utflare1'

Note the second s in Multiskins.
It looks like the texture is specified like Texture'<package>.<group>.<name>'

Hope this helps.
 

BondJamesBond

New Member
Sep 23, 2001
43
0
0
Visit site
Thanks for clarifying Mr. Mitchell

Maybe the MultiSkin array doesn't exist, but the MultiSkins array definently exists!!

Was that taken from the defaultproperties block??
 

jb

New Member
May 22, 2000
278
0
0
www.planetunreal.com
"I know how to change a player mesh but when you change it it keeps the players texture. "

Ok where is this information kept. I want to get the players current mesh. I did a search all with all of the export classes in my UT dir and just not finding it correctly or I am not using the right things to search for...

thanks and sorry

Jb
 

BondJamesBond

New Member
Sep 23, 2001
43
0
0
Visit site
Response to JB

OKY DOKY!!

You can find the information for changing the player mesh and texture inside the "Display" property.

If you want an actor that you script to be viewed as your desired mesh, set the mesh and then set DrawType to DT_Mesh.

Hope that helps, (holler if it doesn't!)
--Rainbow Six
 

MecaNitroPenguin

Errrr...
Dec 24, 2001
44
0
0
Visit site
Another way to say what rainbow6 said above is:

Just set mesh the mesh property(or read it) like this

myplayer.mesh=lodmesh'mypackage.mymesh'

or to read it

mymesh=myplayer.mesh