try to check if (you == player), but preferably use more ignores in c-tracing to not to detect level geometry and other enemies, only the player entity. otherwise the code looks okay for me.


Free world editor for 3D Gamestudio: MapBuilder Editor