Forum rules - please read before posting.

Random Objects/Prefabs Kept, the Rest Destroyed at Start of Scene?

Does anyone happen to know if it's possible to place multiple objects/prefabs (hotspots, NPC with dialog, etc) in a scene and (through actions) AC picks a defined number that's randomly kept, the rest are destroyed at the start of scene without scripting?


Comments

  • You can use the Variable: Check random number to run any number of follow-up Actions at random.  You could then use different Object: Add or remove Actions to remove different scene objects depending on the random value.  Since the "remove" function will delete child objects too, you might want to place each "group" of objects to be deleted into a hierarchy, so that you only have to remove the base.

    Best to do all this in the ActionList Editor window, too.
  • Thanks Chris. You saved me a lot of time figuring this out :D in particularly the fine point about grouping in a hierarchy for the remove function
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.