Transfer attribute to instance

RohalRohal GermanyMember Posts: 62

While looping i spawn different actors.
Is it possible to transfer the loopIndex to the spawned instance, so that every instance has an unique attribute.

I like to have different speed values for my spawned instances and i don't know how to transfer that information.
Any help appreciated.

Comments

  • TosanuTosanu Member, PRO Posts: 388

    I recommend creating a global attribute, call it something like Spawn Speed. If the loop is spawning the actors, put in the loop, RIGHT before the spawning, Change Spawnspeed to loopindex.

    Then in the actor itself put at the very top an change attribute Speed to SpawnSpeed, and build your speed on it.

  • RohalRohal GermanyMember Posts: 62

    @Tosanu‌ thanks for your help.
    That solved my problem. I was trying to fetch a local attribute from "outside"...

Sign In or Register to comment.