How Do I Stop People From Picking Up A Pack?

I was wondering how you would stop someone from picking up a certain pack after its been dropped, anybody know how to?

Comments

  • Something similar to the following would probably work.
    In item.cs:
    function ItemData::onThrow(%data,%obj,%shape)
    {
    	%obj.wasDropped = 1;
    
    	// Rest of function omitted...
    }
    
    ...
    
    function ItemData::onCollision(%data,%obj,%col)
    {
    	if (%obj.wasDropped)
    		return;
    
    	// Rest of function omitted...
    }
    
Sign In or Register to comment.