First of all, thank you for your input
Second, I tried this already several times and it indeed works which I knew afront as well but if seems that the rotation afterwards isn't quite accurate anymore when the tilt/roll/pan value of the enitity changes

I'm trying to make an entity rotate while standing on a wall so when the normal.z equals 0 and tilt equals 90 or -90 degrees.But I think I'll mesh around with ang_rotate abit more ^^
Btw, 'temp' is a predefined variable such as 'player'. 'Temp2' is a vector I used for putting through the angle towards the entity. 'My' is a predefined pointer I use for this entity.

Thanks in progress

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB