Here is what I want to do. I am making a king playertype but it is failing atm.
datablock PlayerData(PlayerKing : PlayerStandardArmor)
{
minJetEnergy = 0;
jetEnergyDrain = 0;
canJet = 0;
uiName = "King Player";
showEnergyBar = false;
};
function PlayerKing::onAdd(%this,%obj)
{
parent::onAdd(%this,%obj);
%obj.mountimage(Crownimage,2);
}
I know the mount is 2 (body)
When using setplayerdatablock, it doesn't add the crown. How do I make it so when it does use setplayerdatablock, it mounts the crown?