• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Change items collision size

Status
Not open for further replies.
Level 3
Joined
Dec 2, 2013
Messages
25
Hi my lords is there a way to change an item collision size (like we can do with units) ?
I searched within the Gameplay Constants but didn't find any clues...

I need to change this because I replaced every items's model by icons, but due to the "item collision size" (too small), they overlap each other, and this ugly...
My only way to fix that is to lower the "scaling value" (1 to 0.7) of the items, sadly the icons are too small now, that's why I tried to increased the items collision size...

Maybe there is a way to do this by changing the "war3mapMisc.txt" file... Something like :
ItemCollisionSize=32

But I don't have the knowledge to go further...

Anyway thanks for you help:)

Shrrignien
 
Level 25
Joined
Mar 29, 2020
Messages
1,465
you could just trigger it so every time they are placed on the ground you move them away from other nearby things.

an easy way to do this - whenever someone tries to place them - create a unit (with the collision you want the items to have) on the location you wish to place the item. save the unit's location, remove the unit and place the item on that saved location.
 
Level 3
Joined
Dec 2, 2013
Messages
25
Oh yeah, that's a really nice idea, I didn't thought about that, I'll try it tomorrow but I'm pretty sure this is a good way to solve my problem.
Thank you !
 
Status
Not open for further replies.
Top