Problem description:
I'm attemping to make it so that when you walk into and item it adds it to your stat. E.g: you have a stat box wiich says "gold" in it and next to it is a number 0, you see money on the floor and then walk into it now your stat says 1 instead of 0 and the money that was on the floor is gone. I've looked around for ages trying to find it somewere but no luck, could anybody help?
ID:144457
![]() Nov 28 2006, 8:50 am
|
|
![]() Nov 28 2006, 10:04 am
|
|
Uhm, sure!
|
Thanks man it helped alot. On that though when you walk into it its a solid and you just face the direction of it, is it possable to make it when its been walked over to add to your gold? I've tried changing the density to 0 but then nothing at all happens.
|
Ichi wrote:
I've tried changing the density to 0 but then nothing at all happens. That's because things only Bump() into each other when they're both dense. You can use turf/Entered() to cause stuff to happen after a mob moves into a new turf. You could have Entered() look through the stuff in its turf, and if it finds gold, do something. |