public void TurretShapeDataSetMountTurret(coTurretShapeData thisobj, coTurretShape turret, coShapeBase player) { if (!turret.isObject() || turret.getDamageState() == "Destroyed") return; int node = thisobj.call("findEmptySeat", turret, player).AsInt(); if (node < 0) return; turret.mountObject(player, node, new TransformF("0 0 0")); player["mVehicle"] = turret; }
public void TurretShapeDataMountPlayer(coTurretShapeData thisobj, coTurretShape turret, coShapeBase player) { if (turret.isObject() && turret.getDamageState() != "Destroyed") turret.call("setMountTurret", player); }