destroyAllEntities

Script::destroyAllEntities

Destroys all Entities.

Declaration

void destroyAllEntities();

Parameters

None.

Returns

None.

Notes

This function will destroy the calling Entity. The rest of the script must not reference any function or variable belonging to this Entity. It is safer to return right after calling this function:

destroyAllEntities();
return;