Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
shifty50

BoundingBox of a Weapon inside a Weapon Holder

Recommended Posts

So if I put a weapon in a weapon holder like so:

weapon_on_ground = "groundWeaponHolder" createvehicle getpos _holder;
weapon_on_ground addWeaponCargo [_wep, 1];

Now im trying to determine the dimensions of the weapon so I can place other items around it. When I use the boundingBox function it returns a far too big box, im assuming its the size of the game logic object of the weapon holder. Is there anyway to get the model of the weapon, and therefore the correct boundingBox from say maybe from the config files by the weapon name as a string ? So far all my attempts have failed.

Thanks in advance

Share this post


Link to post
Share on other sites

When you add more items to the same weaponholder as your weapon it automatically places them around and spreads them nicely.

Share this post


Link to post
Share on other sites

This is true, but it spawns them around in a circle does it not ? Im spawning these items in a limited area and so are trying to place them in specific areas. Hence I need to know how big the weapon is so I can adjust its position accordingly (so its not hanging off the edge of a box or something).

Share this post


Link to post
Share on other sites
Sign in to follow this  

×