Ok i made AS42 now and it works…
except the gunner is apparently invisible
@Devenddar can you help?
it_as_42_metropolitana_ai_vehicle_tank{
bodyCleanupTime:r=5.0
_use:t="ai_vehicle_tank_fixed_objective"
_use:t="it_as_42_metropolitana"
paid_loot__pointsForKill:i=500
vehicle_seats__restrictToTeam:i=3
"dontCreateNphysObstacle:tag"{
}
"zombie:tag"{
}
destroyIfNoCrewLeft:b=yes
_group{
_tags:t="server"
ai_vehicle_tank__thinkState:i=1
ai_vehicle_tank__waitTimesUpdatePath:r=1000000.0
ai_vehicle_tank__allowCrewExiting:b=no
zombie_ai_vehicle_tank__timeToDestroy:r=900.0
zombie_ai_vehicle_tank__destroyAtTime:r=0.0
ai_vehicle_tank__ignoreBattleArea:b=yes
}
"vehicle_seats__seats:shared:array"{
"seats:object"{
name:t="driver"
locName:t="vehicle_seats/driver"
seatOwnsEntityControl:b=yes
attachNode:t="driver"
ignoreAttachNodeRotation:b=yes
attachTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [-0.25, -0.25, 0.0]]
seatComponent:t="isDriver"
nextSeat:t="main_gunner"
shouldHideOwner:b=no
receiveDamageFromDMPart:t="driver"
cameraNodeName:t="bone_camera_driver"
cameraOffset:p3=0.15, -0.0, -0.0
}
"seats:object"{
directTurretControl:b=yes
name:t="main_gunner"
locName:t="vehicle_seats/gunner"
attachNode:t="gunner"
ignoreAttachNodeRotation:b=yes
attachTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [-0.25, -0.5, 0.0]]
seatComponent:t="isGunner"
nextSeat:t="driver"
shouldHideOwner:b=yes
receiveDamageFromDMPart:t="gunner"
"turretNames:array"{
turret:t="turret_01"
}
}
}
}
it_as_42_metropolitana{
_override:b=yes
gunner_cam_limit__useCockpitDir:b=yes
commanderCockpitFpsCamMaxAngle:p2=40.0, 5.0
}
as_42_metropolitana_turret_01_20mm_breda_20_65_m35{
_override:b=yes
_group{
_tags:t="server"
tank_turret_ai__maxBurstCount:i=0
tank_turret_ai__longPauseWaitTime:r=0.0
tank_turret_ai__attackDist:r=200.0
}
}
as_42_spawner{
_use:t="zombie_ai_vehicle_tank_spawner"
zombie_ai_vehicle_tank_spawner__template:t="it_as_42_metropolitana_ai_vehicle_tank"
}