how to put multiple target with the fonction get controller?
I want to know if i can put multiple target instead of copy past my graph. my problem: i create a blueprint for the npc t be able to move to a random point but i can only add one npc (civil 1) but i want to add civil 2 to this function.. :( and i don't want to copy paste.. here a picture:
Thanks and sorry for my bad english.. :(
asked Apr 11 '16 at 12:49 AM in Blueprint Scripting
Yes you need to use a for loop for this.
You would first make array with all the player controllers stored in a variable. Then you would you access them one by one in a for loop.
Here is a comprehensive article
If you think this is too hard and only have a few controllers, you coud duplicate the blueprint and put into a function.
And call your function multiple time with each controller:
Hope this helps.
answered Apr 11 '16 at 07:10 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here