Call that function from MissionScript.
Something like this:
- Code: Select all
function FirstFrame()
{
local DeusExPlayer AP;
Super.FirstFrame();
If (LocalURL=="NAMEOfTHEMap")
{
AP=DeusExPlayer(GetPlayerPawn());
// AP.GiveNewInventory();
ResetPlayer();
}
}
Or better: make a new function in your PlayerClass
- Code: Select all
function GiveNewInventory()
{
local inventory anItem;
local inventory nextItem;
ResetPlayerToDefaults();
// Give the player a pistol and a prod
anItem = Spawn(class'WeaponPistol');
anItem.Frob(Self, None);
anItem.bInObjectBelt = True;
anItem = Spawn(class'WeaponProd');
anItem.Frob(Self, None);
anItem.bInObjectBelt = True;
anItem = Spawn(class'MedKit');
anItem.Frob(Self, None);
anItem.bInObjectBelt = True;
}
And call it from MissionScript.
p.s.: This is
quick solution. I think there is some better way %)