Difference between revisions of "0524"
Jump to navigation
Jump to search
(all named values) |
m |
||
Line 16: | Line 16: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! | + | ! Bone || [[SCM language III/VC definitions#BONE|Enum]] |
|- | |- | ||
| 0 || BONE_ROOT | | 0 || BONE_ROOT |
Revision as of 05:31, 6 December 2015
ATTACH_CUTSCENE_OBJECT_TO_BONE
Description
- Attaches a cutscene object to the bone of another cutscene object
Syntax
- 0524: attach_cutscene_object [object handle1] to_bone [object handle2] [int]
Parameter
- [object handle1]
- The handle of the object attaching
- [object handle2]
- The handle of the object to attach onto
- [int]
- Bone value (see below)
This opcode attaches a cutscene object to the bone of another cutscene object. Cutscene objects are created using opcode 02E5. If the bone does not exist, the object will not appear at all. The primary advantage of using this opcode over using 02E6 is that the object does not need to have its own animation. Any cutscene objects work including character models, but character models are not recommended because they will show up as a clump of meat. The original script called this opcode three times using the left or right hand as the bone to attach.
Bone | Enum |
---|---|
0 | BONE_ROOT |
1 | BONE_PELVIS |
2 | BONE_SPINE |
3 | BONE_SPINE1 |
4 | BONE_NECK |
5 | BONE_HEAD |
21 | BONE_R_CLAVICLE |
22 | BONE_R_UPPERARM |
23 | BONE_R_FOREARM |
24 | BONE_R_HAND |
25 | BONE_R_FINGERS |
31 | BONE_L_CLAVICLE |
32 | BONE_L_UPPERARM |
33 | BONE_L_FOREARM |
34 | BONE_L_HAND |
35 | BONE_L_FINGERS |
41 | BONE_L_THIGH |
42 | BONE_L_CALF |
43 | BONE_L_FOOT |
51 | BONE_R_THIGH |
52 | BONE_R_CALF |
53 | BONE_R_FOOT |
Keywords
attach, cut, scene, cutscene, command, object, bone