ent_bonemove(ENTITY*, STRING* name, VECTOR* offset)
Moves the bone name of entity by the given
offset in x, y, and z direction.
Parameters:
ENTITY* - entity pointer
name - name of the bone, STRING* or char*
offset - x, y, and z direction.
Returns:
0 if bone not found,
otherwise nonzero.
Speed:
Slow
Remarks:
- This instruction does not set the bone to a certain position, it rather
adds the position to the current bone position. For setting the bone
to a position, perform ent_bonereset before.
-
Bone positions are in entity coordinates, i.e. relative to the position,
orientation, and scale of the entity.
Examples:
ent_bonemove(my, "bone1",vector(10,10,10));
See also:
ent_bonereset, ent_bonescale,
ent_animate
► latest
version online