I added a power via a perk that upgrades. When the player purchases the new perk, I'd like it to remove the old power from the list of available spells. I have no idea what even is triggered when a perk is received, so I'm having trouble getting the Game.GetPlayer().RemoveSpell to fire.
Here's the code I'm using now, in which I was attempting, unsuccessfully, to call an OnUpdate event to trigger the removal.
Scriptname CZFoxPerkScript extends Perk Function WhoCares()RegisterForSingleUpdate(1)EndFunctionEvent OnUpdate()Game.GetPlayer().RemoveSpell(CZSummonDogSpell)EndEventSPELL Property CZSummonDogSpell Auto
No idea what else to try, and I'm totally open to suggestions here, as I'm not a newbie at scripting, but I'm also not really experienced or anything.
Thanks.