How to spawn Random actor?

is it possible to set up a rule to spawn random actors? if so how would i do this?

thanks!

Comments

  • KillerPenguinStudiosKillerPenguinStudios Member Posts: 1,291

    @Adamgopro‌, not to sound like a jerk but is this a serious question? I am only asking cause I know you are not a newbie here and feel like you should know the answer to this. Again, was a little confused the someone that has been around the forums and taking the time to learn the tool would not know this. Hope you understand that I'm not trying to be smart or rude in any way!

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2014

    Generate a random number . . . (change self.RANDOM to (random 1,7))

    Then some rules:

    If random number = 1 spawn actor Tony The Spider

    If random number = 2 spawn actor Mr Crisps

    If random number = 3 spawn actor The hand of Death

    If random number = 4 spawn actor Little Jimmy Rickkets

    If random number = 5 spawn actor The all seeing eye

    If random number = 6 spawn actor Lesbian death turtle

    If random number = 7 spawn actor The living grape

    . . . . and so on.

  • AdamgoproAdamgopro Member Posts: 310

    @socks thanks mate!

    @KillerPenguinStudios‌ I've been working on this project all day I forget things easily when I'm tired i should of known tbh but I've never done this type of spawning you see theres always something new to learn i guess :smile:

  • willkeslingwillkesling Member, PRO Posts: 123

    Socks has got the right idea. You can create an actor that just spawns the other actors using this method. I do this in a lot of games to have the scenery spawn in random locations.

  • jeoncrackjeoncrack Member Posts: 25

    Here:

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @Socks - Tony the spider!

  • KillerPenguinStudiosKillerPenguinStudios Member Posts: 1,291

    @Adamgopro said:
    KillerPenguinStudios‌ I've been working on this project all day I forget things easily when I'm tired i should of known tbh but I've never done this type of spawning you see theres always something new to learn i guess :smile:

    I understand what you mean. Sorry if I seemed to be coming off negative. As I said, it just caught me off guard. LOL There is most definitely something new to learn all the time!

  • kculpepperkculpepper Member Posts: 25


    This is the best video ever done for random spawning of actors.

  • kculpepperkculpepper Member Posts: 25

    sorry for the repost of a previous video - skipped over it.

Sign In or Register to comment.