You can not attach or setpos a script created backpack. Also deleteVehicle do nothing.
Description
Details
- Legacy ID
- 1434574436
- Severity
- None
- Resolution
- No Bug
- Reproducibility
- Always
- Category
- Engine
pack = "B_TacticalPack_Base" createVehicle [0,0,0];
sleep 0.1;
pack setPos (player modelToWorld [0,0.8,0]);
pack attachTo [player,[0,0.8,0]];
pack setDir 0;
pack setPos getPos pack;
sleep 5;
detach pack;
deleteVehicle pack
Event Timeline
This is not a bug. createVehicle command will return backpack container. As it is a proxy you can only add items to it but cannot move or attach it. To move backpack you need to access the weaponholder that carries this proxy. Lucky for you new command objectParent https://community.bistudio.com/wiki/objectParent will be available from Monday, so you could do this:
//place created backpack in front of player
_bpContainer = "B_TacticalPack_rgr" createVehicle [0,0,0];
_weaponHolder = objectParent _bpContainer;
_weaponHolder setPos (player modelToWorld [0,5,0]);