Usage:
ObjectTemplate.SetIsFirstPersonPart
number
Argument values:
argument 1: | range is 0 to 2; most commonly 0 |
Description: Placed after an AddTemplate, this property sets if the object is visible in first person camera mode (1) or not (0).
Related properties: AddTemplate, BindToSkeletonPart, CreateSkeleton, HeadIcon, SetLodValue
Used in object types (and how often in each type): BFSoldier (67%)
Used in a total of 38 .con files: Commonsoldierdata.inc, Objects.con
Parent directory of these .con files: objects/Soldiers
Example: (from objects/Soldiers/USSoldier/Objects.con)
include ../Common/CommonSoldierData.inc
rem Sound.addRunTimeDirectory Language USEnglish
Game.AddLanguageRunTimeDirectory USEnglish
include ../Common/Sounds/SoldierSound.inc
ObjectTemplate.SetSoldierStandingIcon "Soldier/Icon_us_soldier_standing.tga"
ObjectTemplate.SetSoldierCrouchIcon "Soldier/Icon_us_soldier_crouching.tga"
ObjectTemplate.SetSoldierProneIcon "Soldier/Icon_us_soldier_lying.tga"
ObjectTemplate.SetMinimapIcon "flag_us.tga"
ObjectTemplate.SetControlPointIcon "conp_us.tga"
ObjectTemplate.SetTicketIcon "flag_ticket_us.tga"
ObjectTemplate.SetTeamFlagIcon "Icon_flag_us.tga"
ObjectTemplate.SetRadioLanguage "UsEnglish"
ObjectTemplate.AddTemplate USSoldierComplexHead
ObjectTemplate.SetRandomGeometries 3
ObjectTemplate.SetIsFirstPersonPart 0
ObjectTemplate.SetLodValue 0.01
ObjectTemplate.BindToSkeletonPart Bip01_Spine3 3
ObjectTemplate.AddTemplate USSoldierHead
ObjectTemplate.SetIsFirstPersonPart 0
ObjectTemplate.SetLodValue -0.01
ObjectTemplate.AddTemplate USSoldier3PBody
ObjectTemplate.SetIsFirstPersonPart 0
ObjectTemplate.AddTemplate USSoldier1PBody
ObjectTemplate.SetIsFirstPersonPart 1
ObjectTemplate.AddTemplate USSoldierRightHand
ObjectTemplate.SetIsFirstPersonPart 0
ObjectTemplate.SetLodValue 0.03
ObjectTemplate.AddTemplate USSoldierLeftHand
ObjectTemplate.SetIsFirstPersonPart 0
ObjectTemplate.SetLodValue 0.03
ObjectTemplate.AddTemplate 1pUSSoldierRightHand
ObjectTemplate.SetIsFirstPersonPart 1
ObjectTemplate.SetLodValue 0.03
ObjectTemplate.AddTemplate 1pUSSoldierLeftHand
ObjectTemplate.SetIsFirstPersonPart 1
ObjectTemplate.SetLodValue 0.03
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.