• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

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