I changed Armor to player and it worked. Now it has syntax errors.
Loading Add-On: Vehicle_Raft (CRC:706921544)
Add-Ons/Vehicle_Raft/Vehicle_Raft.cs Line: 237 - Syntax error.
>>> Some error context, with ## on sides of error halt:
radiusDamageType = $DamageType::VehicleExplosion;
explodeOnDeath^^= 1;
armingDelay = 0;
lifetime = 0;
uiName = "";
};
datablock PlayerData(CannonTurretR : CannonTurretPlayer)
lookUpLimit ##=## 2.6;
lookDownLimit = 2.2;
^
minlookangle = -0.4;
maxlookangle = 0.2;
uiName = "Cannon Raft Turret";
};
function RaftVehicle::onAdd(%this,%obj)
{
%t = new AIPlayer()
{
dataBlock = Cannonturret;
>>> Error report complete.
ADD-ON "Vehicle_Raft" CONTAINS SYNTAX ERRORS