From 9fa6568be401fd7ea64e3eac2532fbffdc969abe Mon Sep 17 00:00:00 2001 From: Brandon Sturgeon Date: Sat, 5 Aug 2023 20:09:08 -0700 Subject: [PATCH] Add spawn hook for missiles --- lua/entities/acf_missile/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/entities/acf_missile/init.lua b/lua/entities/acf_missile/init.lua index d225201..63c5863 100644 --- a/lua/entities/acf_missile/init.lua +++ b/lua/entities/acf_missile/init.lua @@ -404,6 +404,8 @@ function MakeACF_Missile(Player, Pos, Ang, Rack, MountPoint, Crate) Missile.Inputs = WireLib.CreateInputs(Missile, Inputs) Missile.Outputs = WireLib.CreateOutputs(Missile, Outputs) + HookRun("ACF_OnEntitySpawn", "acf_missile", Missile, Data, Class, Crate) + WireLib.TriggerOutput(Missile, "Entity", Missile) Missile:UpdateModel(Missile.RackModel or Missile.RealModel)