Jump to content

Crates that have been sling loaded unable to be destroyed using unit:destroy()


Recommended Posts

Posted (edited)

I have noticed issues with - in particular it seems multiplayer servers - with the destroy() function used by CTLD

 

Crates remain after unpacking... but only as long as the player remains connected.

 

I believe it is something to do with the issue mentioned in this post

 

https://forums.eagle.ru/showthread.php?t=195621

 

In this case I think the script (I assume its a script) that might be holding it up is the slinging one.

 

if the crates are not carried on the 'real' sling, it works just fine. if one is, and one isn't, in a CTLD 2 crate multicrate unit, the one that hasn't been carried via sling, disappears as advertised.

 

After it *should* be destroyed, the crate is still available in the 'all cargos' menu... indicating the script is possibly hanging onto something.... but selecting it doesn't work, as if it weren't there.

 

If I change slots it makes no difference however leaving the server seems to make them disappear - to me at least - indicating that leaving the server perhaps terminated the script... I have yet to test with others present to see what they see with regards to these objects.

Edited by Ironwulf
Posted (edited)

I did some more investigating...

 

If a player sling loads a crate as described, and it doesn't disappear, but leaves the server, and comes back, it is gone from their view, and it is also gone from the 'all cargos' list, but all other players still on the server can still see the crate, and it is still present on the all cargos list, for them.

 

Strangely the issue doesn't seem to happen when played in single player mode. It also does not happen on a multiplayer server if I play from the server itself.... which may be the same thing, I don't know.

 

Interestingly when playing on the server, it works normally from my perspective even when other players put out crates and then unpack them, causing the crates to be destroyed... but they can still see the moved crates.

 

If I (on the server) move crates via sling however, whilst all of the crates disappear for me (even if other players initiate the unpack and thus the destroy() command) the crate I moved does not disappear for them.

 

I hope this helps with reproducing and hopefully finding the issue and fixing it.

Edited by Ironwulf
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...