PDA

View Full Version : Ingame names for static objects ???


D_F_C
04-07-2012, 05:44 PM
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
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...

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
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:

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