![]() |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Send a server message of the object name as you spawn the object.
This will give you the correct name. |
|
#3
|
|||
|
|||
|
Quote:
O and a search light... What? |
|
#4
|
|||
|
|||
|
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() });
}
}
|
|
#5
|
|||
|
|||
|
So there is no way to output the static objects with another method ???
|
|
#6
|
|||
|
|||
|
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). |
![]() |
|
|