Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   Ingame names for static objects ??? (http://forum.fulqrumpublishing.com/showthread.php?t=30977)

D_F_C 04-07-2012 05:44 PM

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

Smokeynz 04-08-2012 01:27 AM

Send a server message of the object name as you spawn the object.
This will give you the correct name.

5./JG27.Farber 04-08-2012 01:48 AM

Quote:

Originally Posted by D_F_C (Post 406728)
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 (Post 406788)
Send a server message of the object name as you spawn the object.
This will give you the correct name.

What?

FG28_Kodiak 04-08-2012 07:32 AM

Quote:

Originally Posted by D_F_C (Post 406728)
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() });
    }
}


D_F_C 04-08-2012 01:38 PM

So there is no way to output the static objects with another method ???

FG28_Kodiak 04-08-2012 01:59 PM

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).


All times are GMT. The time now is 09:02 AM.

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