View Single Post
  #6  
Old 09-26-2009, 10:29 AM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 561
Default

Is this correct?

Level.AddActionHandler( Level.AH_FINISH_CHANGECLOTH, 'WSOL', "OnChangeWSoldierCloth" );
...

function Level.OnChangeWSoldierCloth()
local player - Level.GetPlayer();
if ( player !=nil ) then
Actor.EnableMesh (player, "mesh_cap" , false);
end;
Reply With Quote