VgaGames4

VgaGames4 - object man-pages

[.. upper level ..]

# vg4->object->destroy()

Destroy an object-instance.

SYNTAX
void vg4->object->destroy(void *vgame, unsigned int instanceid)
FUNCTION PARAMETERS

vgame | Private structure of the game, or NULL if not existing
instanceid | Instance-ID

DESCRIPTION
Destroy an object-instance. If the object-instance has a parent-instance-ID, the f_childexit of the parent-object-instance will be called, if it exists. If the object-instance has set the f_free() function, it will be called to free the the private structure opriv (its contents and itself). The object-instance will be automatically deleted from all collision-tags.
SEE ALSO
vg4->object->destroy_objid() vg4->object->destroy_except() vg4->object->destroyall()