Thread: My DtS/MoT mod
View Single Post
  #2  
Old 02-18-2010, 08:37 AM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 561
Default

Quote:
Originally Posted by forlik View Post
P. S. Worker with Kar98k looks more historically accurate than worker with Walther P38
Really? In MoT, workers either had a P38 or nothing at all.

The rifle weapon slot seems to be immune to the Actor.ClearInventory command.

What am I doing wrong here?

Code:
local worker = Level.FindActor('GS06');
if (worker != nil ) then
  Actor.EnableMesh( worker, "grm_cap", true );
  Actor.ClearInventory(worker, true );
  local gun  = Level.CreateItem("Walter","Weapon");
  Actor.PutWeapon( worker, Actor.WEAPON_SLOT_PISTOL, gun );
  Actor.PutWeaponAmmo( worker, "Walter");
  Actor.DropCurrentWeapon( worker, Actor.WEAPON_SLOT_RIFLE, "K98");
end;
Reply With Quote