Jump to content
Sign in to follow this  
zippers

Searchlights, vertical angle

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×