View Single Post
  #4  
Old 04-08-2012, 08:32 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Quote:
Originally Posted by D_F_C View Post
Hello all,

??? = Searchlight.150_cm_SearchLight_UK1
It has none, only actors have one and a searchlight seems to be no actor in normal way.

You can test it with this script:
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;


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

        if(actor is AiAircraft)
            GamePlay.gpLogServer(null, "Actor Internalname: {0}", new object[] { (actor as AiAircraft).InternalTypeName() });

        if (actor is AiGroundActor)
            GamePlay.gpLogServer(null, "Actor Internalname: {0}", new object[] { (actor as AiGroundActor).InternalTypeName() });
    }
}
Reply With Quote