i need a function that works like pointentity

Blitz3D Forums/Blitz3D Programming/i need a function that works like pointentity

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I think the function you might need to use is ATAN2(x,y). I haven't got the time at the moment to put some code together but basically use TFORMPOINT to determine the destination entity's x and z position relative to the source entity. Then use ATAN2(x,z) to determine the EntityYaw() of the source entity.

I hope that's not too vague.

Regards
Johnno