The online racing simulator
C# Creating Object
Hey Guys,

Can somebody give me an example code of how to create an object in C# LFS_External Using The AXM Packet and also create a list of the objects.


// AutoX Multiplication
private void AXM_AutoXMultiplication(Packets.IS_AXM AXM)
{

}

Thanks.
#2 - PoVo
Firstly, AFAIK there isn't any released LFS_External library with these packets in it, so nobody can tell *exactly* how to send them.

Secondly, saving a list of all objects should be pretty easy.

Just handle them the same way as your Connections list.


<?php 
List<AXMobjectsTrackObjects = new List<AXMobjects>();
?>

"AXMobjects" is whatever name the object structure is named in the library.

Then you simply add objects to the list when you received the object packet.

It's pretty hard to explain, unless we have the exact library
EDIT:

i've managed to get my AXM to list the object names now but how to actually create an object could you possibly show an example of that?

all i have so far:


private void AXM_AutoXMultiplication(Packets.IS_AXM AXM)
{
try
{
#region ' Vars '
var Conn = Connections[GetConnIdx(AXM.UCID)];
var Con = AXM.UCID;

AXM.PMOAction = Enums.PMOAction.PMO_ADD_OBJECTS;


#endregion
}
catch { }
}


FGED GREDG RDFGDR GSFDG