Announcement

Collapse
No announcement yet.

Why dont iterator functions work everywhere?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Why dont iterator functions work everywhere?

    I find it hilarious that iterators such as ForEach AllActors and RadiusActors dont work in certain classes(WeaponFire) while the do work in other classes (Projectile).

    is there a reason for this, is there better ways to do the same thing in those certain classes.

    this is more of an annoyance than anything else.

    #2
    WeaponFire (like Interaction) is not a subclass of actor (in which AllActors, DynamicActors etc. are defined). You have to add a simple prefix: ForEach Weapon.Allactors ... when using it in the weaponfire class

    Comment


      #3
      oh my god thats such an easy solution! i feel so **** stupid now!

      thanks i never knew that, thanks for the info.

      ... wait WeaponFire is an Interaction... i thought that was a gui/canvas thing only....

      Comment


        #4
        Nobody said that WeaponFire is an Interaction. It was only stated that WeaponFire and Interaction are no Actor subclasses.

        If you need to verify such things, try UnrealEd's Actor browser, UnCodeX or similar tools for browsing the class tree.

        Comment

        Working...
        X