• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Get current backpack entity of a player

Zipcore

Refugee
Hello there,

currently I'm working on a small project where I need to control which items a player drops when he dies. Does anyone know how I can get the backpack entity and give me some hints how I can make this work?

I can use EntityPlayerLocal.GetDroppedBackpackPosition to get the position and then cycle all entitys until I got the closest one. But maybe someone knows a better way todo this which is more stable in case there are multiple backpacks at this location.

 
Last edited by a moderator:
Back
Top