Sign in to follow this  
Guest luissa

Help for turn off a SCASM light

Recommended Posts

Hello!I am not familiarized with the SCASM code and only I want a little help for turn off (at day!) these lights!Here's the code:ThanksPablo-------------------------------; %1 = Latitude; %2 = Longitude; %3 = Range; %4 = Scale; %5 = Rotation; %6 = Not used; %7 = Not used; %8 = Not used; %9 = Not used; %10 = Visibility range; %11 = Altitude; %12 = Scenery complexityArea( B %1 %2 22 ) mif( %12 ) IfVarRange( : 0346 %12 5 ) mifend PerspectiveCall( :Pos ) ShadowCall( :Pos ) Jump( : ) :Pos mif( %11 ) RefPoint( 3 :End %1 %2 E= %11 V1= %10 V2= 0 ) melse RefPoint( 7 :End 1 %1 %2 V1= %10 V2= 0 ) mifend SetScaleX( :End 0 0 14 ) ; Scale=0.25 mif( %5 ) RotatedCall( :Begin 0 0 %5 ) melse Call( :Begin ) mifend :End Return :Begin Call( :Lamps ) VectorJump( :West 32767 0 0 0 ) VectorJump( :SouthEast 0 0 32767 0 ):NorthEast Return:SouthEast Return:West VectorJump( :SouthWest 0 0 32767 0 ):NorthWest Return:SouthWest Return:Lamps;Lamp: Object 1Light( m 0 0.0 0.0 0.0 1073741824 0.0 0.0 FB 255 160 64 0.0 0.0 0.0 )Light( m 0 0.0 0.0 0.0 1073741824 0.0 0.0 FB 255 160 64 0.0 0.0 0.0 )Light( m 0 0.0 0.0 0.0 1073741824 0.0 0.0 FB 255 160 64 0.0 0.0 0.0 ):EndofLamp0 ReturnEndA

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

:BeginIfVarAnd( :is_day 28C 6 )Call( :Lamps ):is_dayVectorJump( :West 32767 0 0 0 )VectorJump( :SouthEast 0 0 32767 0 )Please test this. It should work,Luis

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this