getActorTypeByName()

darrigaz

  • Posts: 124
Is there a reason that "getActorTypeByName()" isn't a provided block? It's something I've needed to use on a number of occasions and it always seems daft that I have to bodge around the lack of a block for it with some custom code.

Is there something different/better that I should be using?

Context: I'm trying to create a list of actors in the editor (pre-compile time) and pick a random actor to create at runtime.

Edit: I've written my own custom block for this previously but it seems like something that would be so commonly wanted (any game where you need a list of actors need this right?) that it would probably be available in the engine if there wasn't a good reason right?

« Last Edit: March 07, 2015, 01:26:12 pm by darrigaz »

letmethink

  • *
  • Posts: 2545
You mean this block? :P
~Letmethink

darrigaz

  • Posts: 124
Ah! How long has that been there and why didn't I find it?!?! I'm an idiot. Apologies.  :D

letmethink

  • *
  • Posts: 2545
I don't ever remember it being added so probably since before 2.0.  :P
~Letmethink