ent_bonescale(
ENTITY*,STRING* name,VECTOR* scale)
Scales an entity bone, it's childs and all attached vertices in x, y, and z direction.
Parameters:
ENTITY* - entity pointer
name - name
or handle of the bone, STRING* or char*
scale - VECTOR* or var[3] with x, y, z scale factors.
Returns:
0 if the bone was not found,
otherwise nonzero.
Speed:
Slow
Remarks:
This instruction does not set the bone to a certain scale, it rather multiplies
it's current scale by the given factors. For setting the bone to an certain scale,
perform ent_bonereset before. This instruction
can also be used to remove polygons attached to a certain bone by setting its
scale to (0,0,0).
Examples:
action endless_growing()
{
VECTOR temp;
while(1)
{
temp.x += time_step;
temp.y = 1;
temp.z = 1;
ent_bonescale(my, "bone", temp);
wait(1);
}
}
See also:
ent_bonereset, ent_bonerotate,
ent_animate
► latest
version online