NullReferenceException at TurretManager.ToggleTurretsInTcRangeFixed
getting this when using the /turret.tc on or off commands -
Failed to call hook 'ToggleTurretsInTc' on plugin 'PowerlessTurrets v3.1.4' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
  at BaseEntity.WorldSpaceBounds () [0x00000] in <a0456e4b549c49f28b70aed8172a9d92>:0 
  at BaseEntity.GetBuildingPrivilege () [0x00000] in <a0456e4b549c49f28b70aed8172a9d92>:0 
  at Oxide.Plugins.PowerlessTurrets+TurretManager.ToggleTurretsInTcRange (BasePlayer player, System.String arg) [0x00036] in <9a5cf182d2fb48849495c964587efbe6>:0 
  at Oxide.Plugins.PowerlessTurrets.ToggleTurretsInTc (BasePlayer player, System.String cmd, System.String[] args) [0x000ac] in <9a5cf182d2fb48849495c964587efbe6>:0 
  at Oxide.Plugins.PowerlessTurrets.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00340] in <9a5cf182d2fb48849495c964587efbe6>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0​

although when i use just /turret it works fine - /turret also seems to turn sams on
thanks

Hi,

Is this error happening consistently? My initial tests did not raise this error.

Also, /turret is intended to turn sams on.
Hi,
I wiped plugin completely incl lang file and error is gone :)  only small problem is -
when using '/sam.tc on' it works correctly and displays turret activated etc but the sam green light does not go on until you interact with it one time.
thanks
I am having the same issue, I have tried everything i can think of, I even unloaded every plugin and just teste it with none loaded, had the same error, even using a older version don't fix the issue, any ideas?
Should just need a network update.

Please try the latest version and let us know if the issue continues, thanks!

Locked automatically