Sign in to follow this  
edgarone

post about basic dynamic scenery...if anyone could tell

Recommended Posts

Hi, I'm getting slightly desperate here! hehe...here is my code i'm starting with...trying to get an object to appear at 0,0I have created the dynamic library for this object, but nothing is appearing...does anyone know whats wrong?!Header( 1 N0:30:0.0000 S0:30:0.0000 E0:30:0.0000 W0:30:0.0000 )LatRange( N0:30:0.0000 S0:30:0.0000 )Area15( N0:30:0.0000 S0:30:0.0000 E0:30:0.0000 W0:30:0.0000 ) LatRef( N0:00:0.00 ) CallDLibObj( :bus 0 034B2352 005032BE 05B3A79A 034588B6 )Exit:busSetColor( 0 4 F0 ) SetColor( 1 5 F0 ) SetColor( 2 4 F0 ) SetColor( 3 3 F0 ) SetColor( 4 2 F0 ) SetPos( N0:00:0.00 E0:00:0.00 0 ) End15Thanks in advance!

Share this post


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

Hello Oli,at the end of your function you need a jump back to the start to create a loop. Acoording to the scasm docu and sample you could also set the heading of your object and set it into sleep-mode (or wait).Your code gets executed and it leaves the function immediately (sp?).>...>:bus >SetColor( 0 4 F0 ) > SetColor( 1 5 F0 ) > SetColor( 2 4 F0 ) > SetColor( 3 3 F0 ) > SetColor( 4 2 F0 ) > SetPos( N0:00:0.00 E0:00:0.00 0 ) > Heading( 12.3 ) Sleep ; sleep (parking) forever Jump( :bus ) ; <- important>End15 >...Regards,Edgar

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