ランダムに複数配置するブループリントの作成

やりたいこと
・フィールドにある20箇所のアクタの位置うち、10箇所に球をスポーンさせたい

問題点
・同じアクタの位置に複数の球がしゅつげんしてしまう

備考
画像のposActorsには20個のアクタが入っています

このようなブループリントを作成しましたが、上記の問題が発生しています。
原因をご教示いただけますと幸いです。

You need to save the Random result into a variable before using it.

image

Pure functions in Unreal are called every time you take its value, so you get two different random results.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.