Jump to content
Sign in to follow this  
Guest luissa

People...Macros that follow the plane.

Recommended Posts

Guest JoeW

I remember a while back someone posted how to make objests follow the plane around... I printed it so I could make some changes to some of my People macros.Guess what..... I can't find it and I never changed the macros.I did a search for this and still didn't find it.I looked at some api's that have people and the ones that I made and the only difference I can can see is a line:inst_7dBefore the Texpoly entry.Is this right?ThanksJoe W.

Share this post


Link to post
Share on other sites

Nope, the inst_7d is an obsolete command that is not needed anymore.You probably mean the RotateToAircraft command. You can use it instead of the RotatedCall command, like this:[tt]Area( 5 %1 %2 %3 ) PerspectiveCall( :A2 ) Jump( :A1 ) :A2 Perspective RefPoint( 2 :A3 0.75 %1 %2 v1= 5000 E= %11 %13 %14 ) RotateToAircraft( :R1 0 0 0 0 0 1 0 0 0 )Return :R1 Points( 0-1 0 0 ; 0-1 2 0 ; 1 1 2 0 ; 2 1 0 0 ; 3)LoadBitmap( 0 6 EF 0 0 0 schaap.bmp )TexPoly( a0 0 01 0 2552 255 2553 255 0 )TexPoly( ai0 0 01 0 2552 255 2553 255 0 ):A3 Return :A1 EndA[/tt]


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest JoeW

Thanks Arno....I'll gice it a try.Joe W

Share this post


Link to post
Share on other sites
Guest luissa

Hi,The following is macro that draws something allways in front of the player's aircraft.Regards, Luis; Macro Parameters:; 1 = latitude; 2 = longitude; 3 = range ( kilometers )Area( 5 %1 %2 %3 ) PerspectiveCall( :pcall ) Jump( : ):pcall RefPoint( ind :return 1 1BA0 ) PitchCall( :draw_it 1BB2 ) Return :draw_it; place your object here. The following draws an horizontal yellow line in; front of the planeRGBLColor( EF 255 255 0 )Points( 0 -30 0 80 ; 0 30 0 80 ; 1)MoveToPt( 0 )DrawToPt( 1 )ReturnEndA

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...