Search results

  1. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    You basicallybasically summarize what i just said in a post explaining why onkilled didn't work for the metla window bar using OnKilled from Entity.Destroy.
  2. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    ofcouse, it is. but only saying that NetCull.Destroy((entity.Object as DeployableObject).gameObject); works doesn't really explain why Onkilled() in Entity.Destroy / <DeployableObject> doesn't work properly on the metal window bar
  3. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    have you tried using destroy on a wooden foundation with a furnace or any oher item on it?
  4. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    destroying it like that isn't correct though it works. Try NetCull.Destroy((entity.Object as DeployableObject).gameObject); or Entity.Destory() on a wooden foundation with a furnace on it. you'll see how easy peasy the furnace doesn't get destroyed. you will have floating items...
  5. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    It's a bit weird that metal window bars has it's handleDeathHere set to false. All the other structures/deployables seem to remove fine using Entity.Destory()
  6. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    util.DestroyObject(hurtEvent.Entity.Object.GetProperty("gameObject") as GameObject); seems to work. But this doesn't seem logical to do
  7. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    output on tostring (given the entity.object is a metal bar) MetalBarsWindow<Clone> <DeployableeObject>
  8. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    are you checking on hurtevent.entity? i can't find hurtevent.entity.gameobject (only object)
  9. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    The explanation of the problem: You have a metal window bar attached to a wooden or metal window. You want to remove the metal window bar using any remove option (granted you know it will work). Yet after removing the object there still remains a window bar ingame. 2 solutions found: 1. using...
  10. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    you can't do Object.gameObject since Object doesn't have the property gameObject (you have to cast it first)
  11. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    solved the issue, will explain in a second
  12. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    yes, even put log statements after almsot every step. in the end i get the metal window bar in my inventory yet it still remains ingame.
  13. H

    Solved hurtevent.entity.destroy > metal window bar (solved)

    I noticed that the Entity.Destroy() function from class Entity doesn't destroy a metal window bar that is attached to a wooden/metal window. Is there anyone els that experienced the same problem? I have only noticed this problem with the Gameobject metal window bar. for my remover tool i use...
  14. H

    Solved C# XML.Linq

    missing references as in missing dll or no using System.Xml.Linq ?
  15. H

    Solved C# XML.Linq

    Solved the issue. add the microsoft dll: System.Xml.Linq.dll to the servers manged folder. (Legacy\rust_server_Data\Managed).
  16. H

    Approved ResourceNodeLoaded Hook

    I've seen oxide plugins use OnResourceNodeLoaded. Is this hook also available for Fougerite? (i couldn't find it). If not, is this going to be available in a later version?
  17. H

    Solved C# XML.Linq

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Fougerite; using System.Xml.Linq; namespace test { public class Test : Fougerite.Module { public XDocument Document = null; public override void...
  18. H

    Solved C# XML.Linq

    I recently started writing a plugin for fougerite in C#. I wanted to store my data in a XML file. Compling the plugin and running it on the server without defining a Xml.Linq component works. But as soon as i define a simple XDocument property or normal field: I recieve the following error...