Skip to content

Commit

Permalink
Call use hook serverside when used (#1878)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 authored Oct 21, 2024
1 parent 3d35de4 commit 71ef3b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/entities/starfall_processor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ function ENT:Use(activator)
net.WriteEntity(activator)
net.Broadcast()
end

local instance = self.instance
if instance then
instance:runScriptHook("starfallused", instance.WrapObject(activator), instance.WrapObject(self))
end
end

function ENT:OnRemove()
Expand Down

0 comments on commit 71ef3b7

Please sign in to comment.