View Single Post
  #3  
Old 05-28-2012, 07:30 PM
Fer912 Fer912 is offline
Approved Member
 
Join Date: Sep 2011
Location: San clemente del tuyu Argentina
Posts: 12
Default

if that kodiak thanks again.
what I wanted to know is if this form is well done or not

Code:
 public override void OnActorCreated(int missionNumber, string shortName, AiActor actor)
    {
        base.OnActorCreated(missionNumber, shortName, actor);

        if (actor is AiAircraft)
        {
            for (int i = 0; i < (actor as AiAircraft).Places(); i++ )
            {
                if ((actor as AiAircraft).Player(i) != null)
                {
                    p[indice].Nombre = (actor as AiAircraft).Player(i).Name();
                    p[indice].Estado = "Vivo";
                    p[indice].Valor = 0;    //por ahora no lo uso, va a ser implementado en otros para los defectos del avion segun las tirada de dados de rol
                    indice++;
                }
            }
        }
    }
I apologize for the inconvenience and misunderstanding, my English is very poor as well as my knowledge of programming, so I'm asking and reading everything I can to solve my doubts

mains to thank
Reply With Quote