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-07-2012, 05:44 PM
D_F_C D_F_C is offline
Approved Member
 
Join Date: Jun 2011
Posts: 26
Default Ingame names for static objects ???

Hello all,
need some help to identify static objects ingame:

example:

bob:Aircraft.AnsonMkI = Aircraft.AnsonMkI
bob:Car.AEC_Regent_II = Chief Vehicle.AEC_Regent_II
bob:Artillery.20_mm_Flak_38 = Artillery.20_mm_Flak_38

and for this stationary object ?

??? = Searchlight.150_cm_SearchLight_UK1
Reply With Quote
  #2  
Old 04-08-2012, 01:27 AM
Smokeynz Smokeynz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 106
Default

Send a server message of the object name as you spawn the object.
This will give you the correct name.
Reply With Quote
  #3  
Old 04-08-2012, 01:48 AM
5./JG27.Farber 5./JG27.Farber is offline
Approved Member
 
Join Date: Aug 2011
Posts: 1,958
Default

Quote:
Originally Posted by D_F_C View Post
Hello all,
need some help to identify static objects ingame:

example:

bob:Aircraft.AnsonMkI = Aircraft.AnsonMkI
bob:Car.AEC_Regent_II = Chief Vehicle.AEC_Regent_II
bob:Artillery.20_mm_Flak_38 = Artillery.20_mm_Flak_38

and for this stationary object ?

??? = Searchlight.150_cm_SearchLight_UK1
Dont mean to sound like a dick but an anson, a bus and a Flak 38...

O and a search light...

Quote:
Originally Posted by Smokeynz View Post
Send a server message of the object name as you spawn the object.
This will give you the correct name.
What?
Reply With Quote
  #4  
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
  #5  
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
  #6  
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 05:37 PM.


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