bmap_for_entity (ENTITY* entity, var frame)

Returns a bmap pointer to the entities' texture.

Parameters:

entity A pointer to a sprite, model, terrain, or map entity
frame Number of frame or skin to determine the texture. At 0 the current frame or skin will be used

Returns:

Pointer to a bmap if operation was successfully, otherwise 0.

Speed:

Fast

Remarks:

Example:

// capture a screenshot in a sprite
bmap_for_screen(bmap_for_entity(my,0),1,0);

See also:

bmap_for_screen