Announcement

Collapse
No announcement yet.

get class from actor

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

    get class from actor

    how? there are a 'get class' but return class 'object' and need class 'actor' for spawn actor class

    thx
    pd: excuse my english.

    lfw/paid modeling, painting, texturing.

    #2
    Originally posted by knack View Post
    how? there are a 'get class' but return class 'object' and need class 'actor' for spawn actor class

    thx
    I'm not sure if I understand your question correctly. Are you talking about casting to a specified class?
    VFX & AI
    http://www.team-imx.com

    Comment


      #3
      that my problem from other user capture.
      https://answers.unrealengine.com/sto...26-capture.png

      without solution

      i haven't luck with UE lol my paths got blocked.
      Last edited by knack; 04-23-2014, 03:48 PM.
      pd: excuse my english.

      lfw/paid modeling, painting, texturing.

      Comment


        #4
        You can't spawn 'Object'.

        Why you get 'Object' class ? What is the purpose of this object ?

        Comment


          #5
          i known i can't spawn a object, that why i need get the class actor, and that why Get Class not work because return a Class Object and i want Class Actor from the "hit actor"..

          the idea its simple like you see in that capture (not mine but he have same problem, want something like Shoot->trace-> Break Hit -> Hit Actor -> Get Class'Actor' of the hit actor and spawn another one. why? think something like if i Line Trace a dog want spawn a dog, if i line trace a cat want spawn a cat.

          i must find another way. But the idea was simple, its shame i can't get the class'actor'

          when i saw the "Get Class" i say "nice that going to be easy"... after try connect ! sh*t return 'Object'
          Last edited by knack; 04-23-2014, 06:37 PM.
          pd: excuse my english.

          lfw/paid modeling, painting, texturing.

          Comment


            #6
            You don't try to casting to the desired class ?
            Last edited by Eddy71; 04-23-2014, 07:07 PM.

            Comment


              #7
              no cast to actor.
              pd: excuse my english.

              lfw/paid modeling, painting, texturing.

              Comment


                #8
                Like this :

                Click image for larger version

Name:	ObjectCast.jpg
Views:	1
Size:	9.8 KB
ID:	1050220

                Comment


                  #9
                  :O i haven't 'Cast to actor'
                  pd: excuse my english.

                  lfw/paid modeling, painting, texturing.

                  Comment


                    #10
                    you have other versiĆ³n of UE
                    http://i.imgur.com/0xegYOU.png
                    pd: excuse my english.

                    lfw/paid modeling, painting, texturing.

                    Comment


                      #11
                      From your variable object output, drag a link to empty area grid. When the actions choice menus appears, click "Context sensitive" and type "cast actor" in search field.

                      Comment


                        #12
                        yep, now thx
                        but i can't figure yet how to "spawn actor class". Going to investigate. lol
                        pd: excuse my english.

                        lfw/paid modeling, painting, texturing.

                        Comment


                          #13
                          Post a capture of your BP to show the problem

                          Comment


                            #14
                            my blueprint its simple, like the other guys with the same problem

                            https://answers.unrealengine.com/sto...26-capture.png

                            its exact i want spawn the "Hit Actor"

                            i try figure how to do for other ways but in the last steps there are always a "Spawn actor class" and i a need a Class 'actor'.

                            its simple but i begin think there its no way for do that with blueprint. Anyway i am new.
                            Last edited by knack; 04-23-2014, 08:39 PM.
                            pd: excuse my english.

                            lfw/paid modeling, painting, texturing.

                            Comment


                              #15
                              Casting is not applicable here.

                              It is possible, but more complicated.

                              You can see a principle here : http://hpics.li/f2a9ecd

                              This BP compile fine but isn't fully functional. And not tried.

                              1 - Initialize an array of classes with all the classes you want.
                              2 - Compare in a loop the classes in the array with the class of the hit actor.
                              3 - If comparison is true, spawn the actor.

                              Maybe there is a better solution, but i don't see best.

                              Comment

                              Working...
                              X