Finding Child coordinates relative to parent?

Blitz3D Forums/Blitz3D Programming/Finding Child coordinates relative to parent?

Well, as dreamora say, just use entityx() entityy() and entityz() if you want the positions relative to the parent. DON'T use the TRUE flag though, as that will give you world co-ords.

But, i'm confused... Surely you'd want the world co-ords so you could place the bullet at the exact same world co-ords as the gun?

Rememeber, if you using positionentity on a child entity:

PositionEntity Bullet, EntityX(gun,true), EntityY(gun,true), EntityZ(gun,true) , TRUE


You need the TRUE flag on the end of the positionentity command so it will PLACE the entity in the world co-ords, and not it's parents co-ords.