Announcement

Collapse
No announcement yet.

Target point actor spawn.

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

    Target point actor spawn.

    Hello.


    I'm working on a game and there are these target points. In my project I have 5 Target Points where I would like to spawn the Actors down, so that two Actors don't spawn on each other.
    How can I solve this?

    Thank you for your answers!

    #2
    Hi Edem,

    You could do something like this - have a target spawner that spawns the target and then destroys itself - so the target it spawns would remain, but the target spawner itself would be destroyed.

    This is just a sample for what I do for my item spawns - I'm registering them to my Game Mode because when the game starts, my Game Mode iterates through all of my BP_ItemSpawner's and calls the SpawnItem event which does the actual spawning of an item and then it (BP_ItemSpawner) destroys itself.
    Click image for larger version

Name:	Spawner.png
Views:	382
Size:	370.5 KB
ID:	1730192


    The BP_ItemSpawner has a single Billboard component as the root component and it's just an arrow to show me where the BP_ItemSpawner is when I place it into the world.
    Click image for larger version

Name:	Prespawn.png
Views:	318
Size:	578.1 KB
ID:	1730193


    You can see that there's no overlap issue. Ignore the random items and the bow that's 1/2 way in the ground - this is still a work in progress lol.. Hopefully this helps
    Click image for larger version

Name:	Spawned.png
Views:	319
Size:	571.3 KB
ID:	1730194
    UE4 Tutorials
    Multiplayer / Replication Series
    Discord Dilemmas Series

    Marketplace Assets
    The Perfect Storm

    Dynamic Radial Menu

    Comment


      #3
      Thank you very much, you helped me a lot!

      Comment


        #4
        You're very welcome!
        UE4 Tutorials
        Multiplayer / Replication Series
        Discord Dilemmas Series

        Marketplace Assets
        The Perfect Storm

        Dynamic Radial Menu

        Comment

        Working...
        X