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-08-2012, 07: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
  #2  
Old 04-08-2012, 01:38 PM
D_F_C D_F_C is offline
Approved Member
 
Join Date: Jun 2011
Posts: 26
Default

So there is no way to output the static objects with another method ???
Reply With Quote
  #3  
Old 04-08-2012, 01:59 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

At the moment no. if the object is not a AiActor.
A AiActor is alwas created via OnActorCreated(), if my script doesn't show the Internalname of a object you placed on map, its not an AiActor.

a AiActor can be a
AiCart (AiAircraft, AiGroundActor), AiPerson and AiGroup (AiAirGroup, AiGroundGroup).
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 04:21 PM.


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