How to spawn Random actor?
Adamgopro
Member Posts: 310
is it possible to set up a rule to spawn random actors? if so how would i do this?
thanks!
Comments
@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!
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.
@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
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.
Here:
@Socks - Tony the spider!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
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!
This is the best video ever done for random spawning of actors.
sorry for the repost of a previous video - skipped over it.