if (this.IsDeployableObject())
NetCull.Destroy(Entity.GetObject<DeployableObject>().networkViewID);
if (this.IsStructureMaster())
NetCull.Destroy(Entity.GetObject<StructureMaster>().networkViewID);
Entity.Destroy() doesn't use netcull, just when It fails to destroy It.
https://github.com/Notulp/Fougerite/blob/master/Fougerite/Fougerite/Entity.cs#L99
Netcull Itself will never call destroyevent.
--
Btw: util.DestroyObject(hurtEvent.Entity.Object.gameObject);
Forgot that you are on C#...
GameObject and Object is a different thing.
Object returns the original type (Rust class) of the entity.
It's not hurtevent.entity.gameobject.
As I said:
util.DestroyObject(hurtEvent.Entity.Object.gameObject);
Are you sure?
http://fougerite.com/threads/searching-in-world-entities-fails-silently.164/#post-1282
Can you tell me what gets printed on Entity.Object.ToString() ?
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.