| 07-27-2007, 01:45 AM | #1 |
Hello, everyone. I'm creating a map and it's working all too well, except for one tiny little problem. The idea of my map requires that my buildings give off EXP. I've checked all around, and I've already gone to Gameplay Constants and set the 'Buildings Give Experience' as true, but they still don't give off EXP when I test the map. I've also tried going to 'Is A Building' and check off false, which does allow it to give EXP, but my units can walk right through the building. If anyone can help out, it'd be greatly appreciated. Oh, and sorry if this thread has already been posted, I cannot find it. Thanks |
| 07-27-2007, 03:04 AM | #2 |
I think it might be because the buildings are level 0. Try looking in your buildings' Object Editor fields for a field that says what level the unit is and change it to something not 0. Oh, and welcome to the forums. |
| 07-27-2007, 03:06 AM | #3 |
I know, I've tried.. It only shows the level field value when I put 'Is A Building' as false. Otherwise, when I put a building in, it doesn't show the level field value. Thanks for the help, though |
| 07-27-2007, 03:55 AM | #4 |
Un-check "Is A Building" and set the level appropriately. Then, in the unit's OE field, simply change the building's collision size to the appropriate size. By giving it a larger collision radius, units will not be able to walk through it. |
| 07-27-2007, 05:07 AM | #5 |
Even if it doesn't show the field anymore when you set "Is a Building" to true, the value has been changed. The Editor is designed to only show certain fields for certain kinds of object, but they all have them all, and if they're designed to, they use the values for fields even when you can't see them. |
| 07-27-2007, 04:26 PM | #6 |
Oh, I see.. So, what you're saying is that if I put 'Is A Building' as false, change the level, then put the 'Is A Building' as true again, it'll still have the same level? I think I've tried changing the collision size to the appropriate size, and the correct ratio is 1 = 32 pixels, if I'm correct, but it still doesn't work. I'll try the second way. Thanks for your help. Edit: Also, is there any way I can show those values without switching from true to false on the 'Is A Building' field? Re-Edit: Thanks, Panto! Your method worked, but it will take a little bit of time. Oh well. Adding to your rep. Thanks again. |
| 07-27-2007, 05:15 PM | #7 |
Just so you know, the collision size is in pixels (units). You're thinking of the selection scale when you say 1 = 32 pixels. |
