Hi,
How can I code the CPP of a shovel? It's held like a riffle, and at the moment inherits riffle, but shouldn't take up a slot of primary or secondary weapon. It should only take up 2 magazine slots or a special slot (like binocular).
While holding a M16, the player should be able to hit "weapon shovel" and the shovel appears out of nowhere (like binoculars). Is this possible?
At the moment the code is simply:
--------
class CfgWeapons
{
class Default {};
class MGun: Default {};
class Riffle: MGun{};
class Spaten: Riffle
{
displayName="Shovel";
model=\Spaten\spaten;
};
};
---------
How do I code this?
thx