littlerock
New Member
Hi
I have a problem with creating a bus with a busdriver. I want that the busdriver drive the bus to serveral waypoints in a loop. If I take a bus spawned by the Editor. The bus explodes, so i decided to spawn a bus though the Database. The busdriver enters the bus and drive it. So far no problem.
Several action with the depends on the textfield, defined in the editor. Am I able to define that field afterwards to the bus where the driver is in? For example can i define the bus initline after i spawned the bus by DB? Also i am not able to define the busdriver as the driver. So every player in the bus can change to driver seat.
Busdefinition from the sqm.
Busdriver defintion from mission.sqm
I have a problem with creating a bus with a busdriver. I want that the busdriver drive the bus to serveral waypoints in a loop. If I take a bus spawned by the Editor. The bus explodes, so i decided to spawn a bus though the Database. The busdriver enters the bus and drive it. So far no problem.
Several action with the depends on the textfield, defined in the editor. Am I able to define that field afterwards to the bus where the driver is in? For example can i define the bus initline after i spawned the bus by DB? Also i am not able to define the busdriver as the driver. So every player in the bus can change to driver seat.
Busdefinition from the sqm.
Code:
class Vehicles
{
items=1;
class Item0
{
position[]={13110.666,4.667295,3877.0073};
azimut=40;
id=2;
side="EMPTY";
vehicle="Ikarus";
leader=1;
skill=0.60000002;
text="bus";
init="this addEventHandler[""handledamage"", {false}];";
};
};
Busdriver defintion from mission.sqm
Code:
class Vehicles
{
items=1;
class Item0
{
position[]={13120.206,4.9263587,3859.9148};
id=0;
side="WEST";
vehicle="USMC_LHD_Crew_Purple";
leader=1;
rank="MAJOR";
skill=0.60000002;
text="busfahrer";
init="this addEventHandler[""handledamage"", {false}]; busfahrer assignAsDriver bus; busfahrer orderGetIn true; this allowfleeing 0; this setBehaviour ""Careless"";";
};
};