Announcement

Collapse
No announcement yet.

Spawn actor does not work

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

    Spawn actor does not work

    ```
    FActorSpawnParameters s; FVector v(0, 0, 0); FRotator r = FRotator::ZeroRotator; ATestPawn *test = GetWorld()->SpawnActor<AActor>(ATestPawn::StaticClass(),v,r,s); ``` This is the code that I have, it does not spawn an actor, when I check the pointer to see if it returned anything, it does not. What am I doing wrong

    #2
    Hello,
    I think instead of <AActor> you need to use <ATestPawn>

    Comment


      #3
      It might have something to do with factorspawnparameters, maybe the collision is set to "Do not spawn if colliding" or something like that?

      Comment

      Working...
      X