zippers 10 Posted November 8, 2009 Hello, I'm trying to create a mission where the main hotel is lit up at night. I'm in a position where the searchlights come on automatically day or night but they only point at the bottom. They don't need to change direction once intialized, just point up. Does anyone know how I could achieve this? Thanks Share this post Link to post Share on other sites
Gigan 1 Posted November 9, 2009 If you want to change a searchlight to purpose angle, it can be attained by following a method with dowatch. unit init: angle = 45; dir = (getdir this); this doWatch [ (getpos this select 0) + 10 * (sin dir) * (cos angle), (getpos this select 1) + 10 * (cos dir) * (cos angle), 10 * (sin angle) ]; the angle variable is changed to the target angle. Share this post Link to post Share on other sites
Evil_Echo 11 Posted November 9, 2009 Even better if you use the vector math functions in ArmA and/or the CBA addon to create the proper orientation for you. Then pass that to doWatch. Share this post Link to post Share on other sites