Sign in to follow this  
arno

Macros from Library Objects

Recommended Posts

Hi! How do I make a macro for the defualt oil rig in fs2004? I would like to add it in some other spots. Thanks Geoff Sutherland

Share this post


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

The first thing you need to do is to find the GUID of the object. Once you have that you must copy it into this macro template:[tt]Area( 4 %1 %2 22 )IfVarRange( : 346 %12 5 )PerspectiveCall( :L1 )ShadowCall( :L1 )Jump( : ):L1mif( %11 )RefPoint( 2 :E1 %4 %1 %2 E= %11 v1= %10 %13 %14 )melseRefPoint( 7 :E1 %4 %1 %2 v1= %10 %13 %14 )mifendRotatedCall ( :R1 0 0 %5 )Return:R1CallLibObj( 0 6dc7e21e 4f0c4d73 95488dac 102499a1 ):E1ReturnEndA[/tt]Where you replace the GUID that is there now (6dc7e21e 4f0c4d73 95488dac 102499a1) with the GUID of your object.

Share this post


Link to post
Share on other sites

And that's the tricky part. Finding the GUID. Correct me if I'm wrong, but isn't the upcoming SDK the only way to get a complete list of them? (apart from the new autogen and some old object carryovers from earlier versions)?

Share this post


Link to post
Share on other sites

Yes, at the moment it is. For the Fs2002 objects we could just decompile the library and read the GUIDs from the source. But the new format of Fs2004 can not be read yet. So we have to wait for more info from MS I think.

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