1C Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2012, 08: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, 10:34 PM
FG28_Kodiak FG28_Kodiak is offline
Senior 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, 03: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

Thread Tools
Display Modes

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 03:17 PM.

Based on a design by: Miner Skinz.com

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2007 1C Company. All rights reserved.