1. Just had a random thought while driving to work, thought I would ask here.

    Is OnStructureUpgrade called even if the person attempts an upgrade without enough resources, or is that a client check?

    If it is not like that, is there a method that can be used to check for a player attempting to upgrade a structure who does not have the materials required?
     
  2. The hook is triggered after the resource check, so if the player tries to upgrade without the resources to do this the hook will not be triggered.
     
  3. Ah poop, thanks for your reply.