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?
Solved Question regarding OnStructureUpgrade
Discussion in 'Rust Development' started by AlienX, Jan 6, 2016.
-
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.
-
Ah poop, thanks for your reply.