I Made A Spawn Objects System
I Wanted To Spawn The Object Just In Box Collider
But I Can’t Cast To A Class Or Place OBJ
( I Set Spawn Actor’s Return Value and named it Place OBJ )
Please Help
if you need More Info I’m Here !
drag off the pin and start typing cast to (your blueprints name) .
What’s wrong with cast?
You probably going to have to make a cast to be able to set those variables. The only way you could not do a cast is if the variables are from the class actor (what probably won0t be what u want)
Yes, the variables are from the class actor
I feel your design is a bit off, which is fine as a new dev. Give us a detailed breakdown as to what you are trying to do.
Hope this helps:
Blue pins are Objects (instances), where purple nodes are only the type of class.
A class (purple) would be “ACharacter” which you can use to spawn Objects (blue) of type ACharacter.
You can test if an Actor is a Character by dragging the blue pin “OtherActor” and typing Cast To Character. If the result is valid, its blue output pin will be the same actor but now the pin can be used to perform logic for a character. If it fails, the actor was not a character.
I use these specific documentation pages a lot which show the class inheritance hierarchy.
This hierarchy show what you can cast to:
A Character is a Pawn, is also an Actor, is also an Object. The other way around, if you want to check if an Object or an Actor is a Pawn, you Cast t hem to Pawn.
If anything remains unclear I need more details about what you are doing. On the image it looks like you are trying to connect two “get” nodes which is not possible.
thanks guys