How to prevent an Inventory to disappear when crushed?
Posted: Wed Oct 10, 2018 5:35 pm
I just noticed weapon pickups disappear when a mover crushes them, how can I prevent this from happening?
See code of mover (I guess that Inventory's owner is None):PrinceOfFunky wrote:I just noticed weapon pickups disappear when a mover crushes them, how can I prevent this from happening?
Code: Select all
// Return true to abort, false to continue.
function bool EncroachingOn( actor Other ) {
...
if ( Other.IsA('Fragment') || (Other.IsA('Inventory') && (Other.Owner == None)) )
{
Other.Destroy();
return false;
}
...
I'm not talking about Weapons only, and not only about tossed weapons, a Mover is an Actor, so the problem is bCollideActor, which is needed if you want a pawn to pick that inventory up.Higor wrote:Tossed weapons should have bCollideWorld set to false.
The right question is: how you'll set that var at the right time?