EdgeOfChaos
E
EdgeOfChaos
So I'm not sure if this is possible, but I need to do this (or a suitable workaround)
I want to detect the Z value of a unit. I don't mean the Z value of the point the unit is standing on, but the value of the unit itself. These two are not necessarily the same value for flying units with zero fly-height.
My intent is to make a falling system where the character can fall off a cliff but not climb back up. I need to detect the difference between the character's Z value and the ground's Z value to see if it needs to fall, or to see if it should be prevented from climbing. Any way to do this?
I want to detect the Z value of a unit. I don't mean the Z value of the point the unit is standing on, but the value of the unit itself. These two are not necessarily the same value for flying units with zero fly-height.
My intent is to make a falling system where the character can fall off a cliff but not climb back up. I need to detect the difference between the character's Z value and the ground's Z value to see if it needs to fall, or to see if it should be prevented from climbing. Any way to do this?