Setting the "clean on delete" flag in code

edited February 2012 in Help request
Is it possible to set the clean on delete flag on a spawner after it has already been created?

There will be certain situations in which destroying an enemy should destroy all of its bullets as well. Is there a way to set the clean on delete flag in the code? If not, is there another way to clear all of the enemy's spawner's spawned objects on delete?

Comments

  • edited February 2012
    Both are feasible. Adding the flag is the easiest though:
    orxStructure_SetFlags(MySpawner, orxSPAWNER_KU32_FLAG_CLEAN_ON_DELETE, orxSPAWNER_KU32_FLAG_NONE);
    
  • edited February 2012
    Thanks!
Sign In or Register to comment.