About
News
Tutorials
Tools
Tools Guide
Scripting
Forums
Contact
bindToSkeletonPart
bindToSkeletonPart <bone name>
Example:
ObjectTemplate.
create
BFSoldier
BritishSoldier
ObjectTemplate.
createSkeleton
animations/UsSoldier.ske
include ../Common/CommonSoldierData.inc
game.addLanguageRunTimeDirectory English
include ../Common/Sounds/SoldierSound.inc
ObjectTemplate.
setSoldierStandingIcon
"Soldier/Icon_brit_soldier_standing.tga"
ObjectTemplate.
setSoldierCrouchIcon
"Soldier/Icon_brit_soldier_crouching.tga"
ObjectTemplate.
setSoldierProneIcon
"Soldier/Icon_brit_soldier_lying.tga"
ObjectTemplate.
setMinimapIcon
"flag_brit.tga"
ObjectTemplate.
setControlPointIcon
"conp_brit.tga"
ObjectTemplate.
setTicketIcon
"flag_ticket_brit.tga"
ObjectTemplate.
setTeamFlagIcon
"Icon_flag_brit.tga"
ObjectTemplate.
setRadioLanguage
"English"
ObjectTemplate.
addTemplate
BritSoldierComplexHead
ObjectTemplate.
setRandomGeometries
3
ObjectTemplate.
setIsFirstPersonPart
0
ObjectTemplate.
setLodValue
0.01
ObjectTemplate.
bindToSkeletonPart
Bip01_Spine3 3
ObjectTemplate.
addTemplate
BritSoldierHead
ObjectTemplate.
setIsFirstPersonPart
0
ObjectTemplate.
setLodValue
-0.01
ObjectTemplate.
addTemplate
BritSoldier3PBody
ObjectTemplate.
setIsFirstPersonPart
0
ObjectTemplate.
addTemplate
BritSoldier1PBody
ObjectTemplate.
setIsFirstPersonPart
1
ObjectTemplate.
addTemplate
BritSoldierRightHand
ObjectTemplate.
setIsFirstPersonPart
0
ObjectTemplate.
setLodValue
0.03
ObjectTemplate.
addTemplate
BritSoldierLeftHand
ObjectTemplate.
setIsFirstPersonPart
0
ObjectTemplate.
setLodValue
0.03
ObjectTemplate.
addTemplate
1PBritSoldierRightHand
ObjectTemplate.
setIsFirstPersonPart
1
ObjectTemplate.
setLodValue
0.03
ObjectTemplate.
addTemplate
1PBritSoldierLeftHand
ObjectTemplate.
setIsFirstPersonPart
1
ObjectTemplate.
setLodValue
0.03
Valid object types
AnimatedBundle
BFSoldier