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.
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
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...
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()
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...
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...
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?
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.