|
Set the object text to the given color.
Used together with STATE_object_add_text()
See also
STATE_object_add_text(), STATE_object_get_text()
void STATE_object_set_text_color(DWORD object_handle, BYTE red, BYTE green, BYTE blue);
void STATE_object_get_text_color(DWORD object_handle, BYTE *red, BYTE *green, BYTE *blue);
Returns the object 3D_animation or NULL if it doesnt have any 3D animation
Example:
my_obj=STATE_object_create_from_file("woman.md2"); The md2 files contain a 3D animation. The 3D animation is automatically loaded to the engine
my_3danim=STATE_object_get_3D_animation();
walk_sequence=STATE_3D_sequence_get_using_name(my_3danim,"walk");
standing_sequence=STATE_3D_sequence_get_using_name(my_3danim,"stand");
undressing_sequence=STATE_3D_sequence_get_using_name(my_3danim,"undress");
if(key_1_is_pressed) STATE_object_set_3D_sequence(my_obj,walk_sequence);
if(key_2_is_pressed) STATE_object_set_3D_sequence(my_obj,undressing_sequence);
and so on ...
|