Author Topic: Crown  (Read 1013 times)

That would kill every Add-On every that uses Armor::onNewDatablock. Package it. Check whether it's even your King player.

That would kill every Add-On every that uses Armor::onNewDatablock. Package it. Check whether it's even your King player.
I'm so lost D:

I will try though.

Nope. Couldn't figureo ut how to make it so no other playertypes would get changed.

Check whether it's even your King player.

Would this work?
Code: [Select]
if(%armor.getType(King))
{
function Armor::OnNewDatablock(%this,%obj)
{
parent::onAdd(%this,%obj);
%obj.mountimage(Crownimage,2);
}}


You can't declare a function within an if statement like that.

You can't declare a function within an if statement like that.
Oh, well I am still learning how to code, how should it be done?

What's with your parent::onAdd right there? Shouldn't it be parent::OnNewDatablock?

Don't just shove random bits of code you see together. It really won't help.