Thread: Got Codes?
View Single Post
  #7  
Old 10-21-2009, 04:10 AM
sniperspec sniperspec is offline
Approved Member
 
Join Date: Oct 2009
Posts: 10
Thumbs up

Quote:
Originally Posted by OSS View Post
You could try manually change uniform with lua methods:

Actor.ChangeActorSkin( Level.GetPlayer(), "SovietSoldier" );

and then disable hats & helmets:

Actor.EnableMesh( Level.GetPlayer(), "grm_helmet" , false );

some tags you can try:

grm_helmet
grm_cap
grm_shoulder
grm_coat
sol_equipment_lo

to run lua methods from console, first use '$', ex. :

$ Actor.ChangeActorSkin( Level.GetPlayer()... );
Actor.ChangeActorSkin( Level.GetPlayer(), "SovietSoldier" );
This code Works well, but the second one:
Actor.EnableMesh( Level.GetPlayer(), "grm_helmet" , false );
does not work, when I put it in directly including the $ at the front, it does nothing, mabie you made a mistake in one of the words?

Still thanks for your help
Reply With Quote