Jump to content


Photo

Special Power Button


  • Please log in to reply
3 replies to this topic

#1 Slye_Fox

Slye_Fox

    ConRed Mod Leader

  • Hosted
  • 1,357 posts
  • Location:London, UK
  • Projects:Sigma Invasion, CnC: Condition Red, Armoured Sky: Ethereal Dawn
  •  The fluffy fox of Revora.

Posted 20 March 2009 - 01:50 AM

Right, i've created the super weapon for one of the factiosn of my mod.

But, how do i add a button onto the sidebar (i beleave it's called the spellbook)?

There was a topic on this on page 2 of this sub-forum, but the link to a sample mod was dead.

#2 CommieDog

CommieDog
  • Project Team
  • 81 posts
  • Location:Alaska (where even gravity is bigger)

Posted 11 April 2009 - 02:07 AM

If I remember correctly, you need to edit the LogicCommandSet PlayerSpellBookCommandSet in order to reference your new power. You may need to edit the PlayerSpellbookObject as well.
CommieDog™: The Original Proletarian Pet
Learn from your parents' mistakes: use birth control.

#3 Golan

Golan
  • Members
  • 120 posts
  •  Off-Duty

Posted 11 April 2009 - 06:33 AM

You only need a PlayerPowerManager in the PlayerSpellBook object, a PlayerAbilityButton and the corresponding SpecialPower-modules on whichever object should grant the power. A seperate LogicCommand is not needed, neither on the SpellBook's CommandSet nor on the object triggering the power (in fact, they won't have any effect).

Posted Image


#4 Slye_Fox

Slye_Fox

    ConRed Mod Leader

  • Hosted
  • 1,357 posts
  • Location:London, UK
  • Projects:Sigma Invasion, CnC: Condition Red, Armoured Sky: Ethereal Dawn
  •  The fluffy fox of Revora.

Posted 13 April 2009 - 03:49 PM

Got all that, but I got this;

Attached Thumbnails

  • Super.PNG





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users