Set a variable from a group of actor arrays
Hello, so, i have spawned 30 meteors, with random locations, rotations and scales, and what i want to do, is to shoot more bullets to those meteors that are bigger. What i have done this far, is to create a variable on the Meteor Blueprint, (called health) and i want to change this variable based on the scale of the meteor. So, on the meteor actor blueprint, i've drag out from the Event tick -> get all actors of class, and then for each loop, get, and get actor scale 3D, and if they are big enought, a branch that sets the variable health to a bigger number. But is not working, Any help? Thanks
asked Apr 07 '17 at 10:21 AM in Blueprint Scripting
As Jason.J said, this would be best done in the construction script. Here's a quick example:
Each time a meteor spawns, it will set its own health based on its scale.
answered Apr 08 '17 at 03:37 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here