Skip to content

Questions about the action 'InitialRandomSpaw' #743

Answered by winthos
liuxz-cs asked this question in Q&A
Discussion options

You must be logged in to vote

The numDuplicatesOfType is the number of attempted duplicates of an object that currently exists in the scene. It cannot be used to spawn in new objects that are not already present in the scene, as it makes a copy of an object that already exists. Because of this, you will never have the total number of objects be 0 for a specific object, because this parameter will only work if the original object(s) already exist by default in a scene.

Additionally, numPlacementAttempts is not at all related to the number of duplicates of an object specified by numDuplicatesOfType. What happens is, you pick an object to duplicate, and for each duplicate up to the numDuplicatesOfType, it will try and pl…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@liuxz-cs
Comment options

@winthos
Comment options

@liuxz-cs
Comment options

Answer selected by mattdeitke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #742 on May 05, 2021 17:10.