bmap_for_entity (ENTITY*, var frame)

Returns a BMAP* pointer to an entity 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:

BMAP* pointer to a bmap if operation was successfully, otherwise NULL.

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, bmap_for_texture

► latest version online