NameTagOffset Property

Usage:
   ObjectTemplate.NameTagOffset x/y/z

Argument values:

argument 1:    -0.3/-0.2/0, -1/4/0, 0/-0.1/0, 0/-0.2/-1, 0/-0.2/0, 0/-0.3/0, 0/-0.4/-1, 0/-0.4/0, 0/-0.4/1, 0/-0.415/4.578, 0/-0.5/0, 0/-0.6/-1, 0/-0.6/2, 0/-0.8/-1, 0/0.2/0, 0/0.4/0, 0/0.6/0, 0/0.6/3.05, 0/0.60/0, ...

Description: This command allows the name tag of people in vehicles to be offset from where the PlayerControlObject for that position is. This is useful in vehicles like the willy jeep where the two PlayerControlObjects are in very close proximity to each other.

The only effect of this property is to make it easier to see the names of the individual players that are in the vehicle.

Used in object types (and how often in each type): PlayerControlObject (26%)

Used in a total of 43 .con files: Objects.con

Parent directories of these .con files: objects/Vehicles, Bf1942/Levels

Example: (from objects/Vehicles/Land/Hanomag/Objects.con)
   rem *** Hanomag ***
   ObjectTemplate.Create PlayerControlObject Hanomag
   ObjectTemplate.NameTagOffset 0/-0.6/2
   ObjectTemplate.SetNetworkableInfo HanomagInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.CullRadiusScale 5
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.ExplosionRadius 8
   ObjectTemplate.ExplosionDamage 5
   ObjectTemplate.ExitTimer 1
   ObjectTemplate.Drag 2
   ObjectTemplate.Mass 15000
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.HasArmor 1
   ObjectTemplate.SpeedMod 2
   ObjectTemplate.Hitpoints 100
   ObjectTemplate.Maxhitpoints 100
   ObjectTemplate.Material 45
   ObjectTemplate.CriticalDamage 16
   ObjectTemplate.HpLostWhileCriticalDamage 1.5
   ObjectTemplate.ExplosionForceMod 13
   ObjectTemplate.HpLostWhileUpSideDown 10
   ObjectTemplate.HpLostWhileDamageFromWater 10
   ObjectTemplate.AddArmorEffect 50 e_HanomagDamage 0/0.5/2.5
   ObjectTemplate.AddArmorEffect 16 e_HanomagFire 0/1/2.7
   ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
   ObjectTemplate.AddArmorEffect 0 e_scrapmetal 0/0/0
   ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
   ObjectTemplate.DamageFromWater 1
   ObjectTemplate.AiTemplate Hanomag
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodHanomag
   rem -------------------------------------
   ObjectTemplate.SetSoldierExitLocation -2/0/0 0/0/0
   ObjectTemplate.GUIIndex 59
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_hanomag.tga"
   ObjectTemplate.SetVehicleIconPos 39/75
   ObjectTemplate.SetPrimaryAmmoBar ABNone
   ObjectTemplate.SetCrossHairType CHTNone
   ObjectTemplate.SetVehicleCategory VCLand
   ObjectTemplate.SetVehicleType VTApc
   ObjectTemplate.SetToolTipType TTApc
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_apc_16x16.tga"
   ObjectTemplate.HasRestrictedExit 1


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.