Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2012, 07:56 PM
Fer912 Fer912 is offline
Approved Member
 
Join Date: Sep 2011
Location: San clemente del tuyu Argentina
Posts: 12
Default help actor

hello, maybe I make a noob question, but I'm going crazy, how do I know if an aircraft is commanded by the AI ​​or a human.

with an actor is used, can not find the back

sorry for my English and my lack of coding
thanks
Reply With Quote
  #2  
Old 04-12-2012, 09:34 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Example:
Code:
            if (actor is AiAircraft)
            {
                    for (int i = 0; i < (actor as AiAircraft).Places(); i++)
                    {
                        if ((actor as AiAircraft).Player(i) != null)
                        {
                            // Actor has Player
                        }
                    }
            }
Reply With Quote
  #3  
Old 04-13-2012, 02:01 AM
Fer912 Fer912 is offline
Approved Member
 
Join Date: Sep 2011
Location: San clemente del tuyu Argentina
Posts: 12
Default

thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:21 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.