Quote:
Originally Posted by forlik
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;