Anyone know how to get a scaleform to face the player?
I’m almost certain there’s some simple math for this but i’ve got no idea what it is.
--Code im using to draw the scaleform
--changing rotz has the desired effect but i'm not sure how to get the right value
local rotx,roty,rotz = 0.0
DrawScaleformMovie_3dNonAdditive(scaleformHandle, x, y, z + 1.0, rotx,roty,rotz, 2.0,2.0,1.0, 4.0,4.0,4.0)
Well GetGameplayCamRot().z did what i wanted but in reverse so i did the neive thing and took 180 from it and obviously that didn’t work either so i left it to go try something else. The correct way to inverse it is just to put a minus in front of it so local camRot = GetGameplayCamRot() and rotz = -camRot.z works.