Sign in to follow this  
Au MaV

Dynamic Scenery Help

Recommended Posts

Hi Everybody:)Ive spent the last couple of days learning how to and making Dynamic scenery.I would like me fuel truck to move out,refuel my aircraft when Im in a certain spot.Im slowly coming to grips with scasm and this is what Ive got so far ; ----------------------------------------; LFRD_refuel_trk.bgl ; ----------------------------------------Header( 1 N48:50:28.00 N48:20:24.00 W001:49:33.00 W002:19:38.00 )LatRange( N48:20:24.00 N48:50:28.00 )mif( [$Version < 285] ) Error( You need at least SCASM version 2.85 to compile this code )mifendSet( FSVers 0x800 )Area15( N48:50:27.10 N48:20:19.24 W001:49:45.21 W002:19:44.77 N48:50:27.10 N48:20:19.24 W001:49:45.21 W002:19:44.77 ) LatRef( N48:35:26.00 ) CallDLibObj( :L000045 4 2 41554D41 564C4942 52415259 00001133 ) Exit:L000045 SetPos( N48:35:28.07 W002:04:34.00 67.000 ) Heading( 264 ) ACS( 1 ) Heading( 264 ) Call( :Loop ) Jump( :L000045 ):Loop IfObjectInBox( :L000067 N48:35:28.57 W2:04:40.98 67 90 2 2 ) Hold( 2 ) Jump( :Loop ) :L000067 ACS( 1 ) StartTimer MoveToPos1( N48:35:28.05 W002:04:34.00 67.000 0.51 0.01 -95.84) MoveToPos1( N48:35:28.05 W002:04:34.00 67.000 0.51 -0.02 -95.84)=================edited down for size=============================== ReturnEnd15; ----------------------------------------; end of SCASM sourceNow what happens as soon as fs9 loaded the fuel truck takes off follows the track then parks itself never to move again regardless of whats in the object box.I havnt even got to the refueling bit yet Im just trying to get it to move when Im in the box Any suggestions tips links much appreciatedThanksWarwick

Share this post


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

HiYeah been there searched all over for about 3 day for any snippets of info.The search continuesThanksWozza

Share this post


Link to post
Share on other sites

Hi Again A bit of a bump :)Isnt anybody playing with dynamic scenery in FS9 ?anyways Ive mangaged to get the truck to come out using the example in the above link.Now if I use the refuel (6) tag the truck runs around lines up and stops as it should but no fuel gets transfered :( the truck remains stuck until I move out of the area.then it moves the finel moveto commands and resets???Ive tried the RefuelBounds( Lat Lon rad :Label val2 ) line but scasm refuses to compile it,anyway here is the code so far,In case anybody else is working on this problem NOT:) CheersWozza; ----------------------------------------Header( 1 N48:50:44.00 N48:19:30.00 W001:49:13.00 W002:20:24.00 )LatRange( N48:19:30.00 N48:50:44.00 )mif( [$Version < 285] ) Error( You need at least SCASM version 2.85 to compile this code )mifend; ----------------------------------------; dynamic scenery; ----------------------------------------Set( FSVers 0x800 )Area15( N48:50:27.10 N48:19:29.48 W001:50:05.00 W002:20:44.09 N48:50:27.10 N48:19:29.48 W001:50:05.00 W002:20:44.09 ) LatRef( N48:35:07.00 ) CallDLibObj( :L000045 4 2 41554D41 564C4942 52415259 00001133 ) Exit:L000045 SetPos( N48:35:28.21 W002:04:34.20 67.000 ) Heading( 264 ) ACS( 1 ) Heading( 264) Call( :L000076 ) Jump( :L000045 ) :L000076 Hold( 5 ) IfObjectInBox( :L000076 N48:35:28.57 W002:04:40.98 67 0 10 10 ) Hold( 5 ) Jump( :L000085 ) :L000085 ACS( 1 ) StartTimer MoveToPos1( N48:35:28.21 W002:04:34.20 67.000 0.08 -1.65 -106.25) MoveToPos1( N48:35:28.21 W002:04:34.20 67.000 0.04 -1.65 -106.25) MoveToPos1( N48:35:28.21 W002:04:34.20 67.000 0.15 -1.65 -106.25)+++++++++++++++++++++cliped to save space++++++++++++++++++++MoveToPos1( N48:35:28.32 W002:04:42.00 67.000 0.53 -0.03 81.61) MoveToPos1( N48:35:28.32 W002:04:42.00 67.000 0.52 -0.04 81.61)Refuel( 6 ) MoveToPos1( N48:35:28.32 W002:04:42.00 67.000 0.53 -0.03 81.61) MoveToPos1( N48:35:28.32 W002:04:42.00 67.000 1.41 -0.03 81.61) MoveToPos1( N48:35:28.30 W002:04:42.16 67.000 0.44 -0.02 81.96) MoveToPos1( N48:35:28.29 W002:04:42.30 67.000 0.50 -0.04 82.76)ReturnEnd15; ----------------------------------------; end of SCASM source

Share this post


Link to post
Share on other sites

Hi Ecryone the following code will move the fuel truck when you enter the monitered area once. It will wait untill you move out of the area and reset it self.Set( Area15mx 32 )Header( 1 S34:36:36 S34:47:23 E138:43:32 E138:30:26 )LatRange( S34:47:23 S34:36:36 )Area15( S34:36:36 S34:47:23 E138:43:32 E138:30:26 )LatRef( S34:42 ) Pattern( :FuelTruck 0FE12 4 4 )Exit:FuelTruck SetPos( S34:42:48.5316 E138:37:44.2164 21 ) Heading( 26.731307 ) ACS( 1 ):checking Hold( 2 ) IfObjectInBox( :checking S34:42:43.9236 E138:37:47.6796 20 0 20 20 ) Call( :Pattern01 ) ; Hold( 10 ) ; > All movement here Call( :Pattern02 ) ; /:waiting IfObjectInBox( :checking S34:42:43.9236 E138:37:47.6796 20 0 20 20 ) Hold( 2 ) Jump( :waiting ):Pattern01Note I couln't ever get it to actually refuel the aircraft and what's worse using the Refuel ( # ) wil set the ACS( # ) to 0 causing it to stop moving when it gets close to your aircraft to prevent a crash. Since it won't refuel your aircraft anyway don't use it.

Share this post


Link to post
Share on other sites

>>Note I couln't ever get it to actually refuel the aircraft and>what's worse using the Refuel ( # ) wil set the ACS( # ) to 0>causing it to stop moving when it gets close to your aircraft>to prevent a crash. Since it won't refuel your aircraft anyway>don't use it.Hi basicaly you got the same code I have and its doing the same thing But why dosnt refuel work ???? as older scasm refuel areas do in FS9Is there somthing we are missing and whats the point of having a refuel tuck that dosnt refuel:D thanks for the reply at least I know Im not alone LOLCheersWozza

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