Author Topic: How to create a Weapon Unlock  (Read 572 times)

Zminer

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
How to create a Weapon Unlock
« on: January 08, 2015, 07:40:50 PM »
I don't see a "RequireUnlockTag" hook or similar for weapons.  I have successfully created a new one for buildings.  I thought looking at the HyperDense Laser would help me understand, since that's an unlock-able, but no help so far.  Any insights?  Thanks!

GGLucas

  • Dr. Evil
  • BMS Staff
  • Delusional
  • *
  • Posts: 1877
  • Karma: +300/-6
    • View Profile
Re: How to create a Weapon Unlock
« Reply #1 on: January 08, 2015, 07:48:26 PM »
Subsystems are always locked by default unless they are given the 'DefaultUnlock' tag. To unlock a subsystem just use the 'UnlockSubsystem' hook in the technology, specifying which subsystem to unlock.

Zminer

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: How to create a Weapon Unlock
« Reply #2 on: January 08, 2015, 08:01:24 PM »
Thanks for the reply!  What I meant though was I want to make a new Research hex that would unlock a modded weapon.  I've already done so with a modded Building, but I can't find the hook that does this for weapons...

Zminer

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: How to create a Weapon Unlock
« Reply #3 on: January 08, 2015, 08:32:04 PM »
EDIT:  I see now, I delete DefaultUnlock tag and create the Research hex as usual.  I was just messed up on expecting weapons to have the hook buildings do.  Thanks!
« Last Edit: January 08, 2015, 08:35:45 PM by Zminer »