AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   EngFunc_GetBonePosition (https://forums.alliedmods.net/showthread.php?t=74742)

ot_207 07-24-2008 00:44

EngFunc_GetBonePosition
 
Hi!
I recently began to use engfunc(EngFunc_GetBonePosition, target, bone, origin, angles).
The question is -> what are the values that "bone" can get and what does each one refer to?

jim_yang 07-24-2008 02:06

Re: EngFunc_GetBonePosition
 
target is the entity's index
bone is the bone's index

origin and angles store the return value of the bone's origin and angles(passed byref)

new Float: origin[3];
new Float: angles[3];
engfunc(EngFunc_GetBonePosition, 1, 1, origin, angles);

you can get the bone's info with half life model viewer

ot_207 07-24-2008 11:28

Re: EngFunc_GetBonePosition
 
Thanks! +k!

Quote:

Bone 1 Name: "Bip01"

Bone 2 Name: "Bip01 Pelvis"

Bone 3 Name: "Bip01 Spine"

Bone 4 Name: "Bip01 Spine1"

Bone 5 Name: "Bip01 Spine2"

Bone 6 Name: "Bip01 Spine3"

Bone 7 Name: "Bip01 Neck"

Bone 8 Name: "Bip01 Head"

Bone 9 Name: "Bone01"

Bone 10 Name: "Bip01 L Clavicle"

Bone 11 Name: "Bip01 L UpperArm"

Bone 12 Name: "Bip01 L Forearm"

Bone 13 Name: "Bip01 L Hand"

Bone 14 Name: "Bip01 L Finger0"

Bone 15 Name: "Bip01 L Finger01"

Bone 16 Name: "Bip01 L Finger1"

Bone 17 Name: "Bip01 L Finger11"

Bone 18 Name: "-- L knuckle"

Bone 19 Name: "-- L Forearm twist"

Bone 20 Name: "-- L wrist"

Bone 21 Name: "-- L Elbow"

Bone 22 Name: "-- L bicep twist"

Bone 23 Name: "-- L shoulder outside"

Bone 24 Name: "-- L Shoulder inside"

Bone 25 Name: "Bip01 R Clavicle"

Bone 26 Name: "Bip01 R UpperArm"

Bone 27 Name: "Bip01 R Forearm"

Bone 28 Name: "Bip01 R Hand"

Bone 29 Name: "Bip01 R Finger0"

Bone 30 Name: "Bip01 R Finger01"

Bone 31 Name: "Bip01 R Finger1"

Bone 32 Name: "Bip01 R Finger11"

Bone 33 Name: "-- R knuckle"

Bone 34 Name: "-- R wrist"

Bone 35 Name: "-- R forearm twist"

Bone 36 Name: "-- R Elbow"

Bone 37 Name: "-- R bicep twist"

Bone 38 Name: "-- R Shoulder inside"

Bone 39 Name: "-- R shoulder outside"

Bone 40 Name: "-- Neck smooth"

Bone 41 Name: "-- R Butt"

Bone 42 Name: "-- L butt"

Bone 43 Name: "Bip01 L Thigh"

Bone 44 Name: "Bip01 L Calf"

Bone 45 Name: "Bip01 L Foot"

Bone 46 Name: "Bip01 L Toe0"

Bone 47 Name: "-- L ankle"

Bone 48 Name: "-- L Knee"

Bone 49 Name: "Bip01 R Thigh"

Bone 50 Name: "Bip01 R Calf"

Bone 51 Name: "Bip01 R Foot"

Bone 52 Name: "Bip01 R Toe0"

Bone 53 Name: "-- R Ankle"

Bone 54 Name: "-- R Knee"

Bone 55 Name: "Bomb"
For other ones that need this!


All times are GMT -4. The time now is 05:40.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.