Multi "if" question.
I have 4 locations on my screen these 4 x/y will spawn 1 of 4 different actors every so often. Lets say every 5 secs.
I have a spawner called spwnloc.
It has a timer to change spwnloc to a number between 1,20
If spwnloc is currently 1
spawn actor 1 at location 1 and 3.
Can i tell it to say if spwnloc is currently 1 or 7 or 12 or 15
spawn actor 1 at location 1 and 3.
My main point is can I make one rule do something if random is 1 or 3 or 12 or 17
or do i have to make individual rules for each (if)s
I have a spawner called spwnloc.
It has a timer to change spwnloc to a number between 1,20
If spwnloc is currently 1
spawn actor 1 at location 1 and 3.
Can i tell it to say if spwnloc is currently 1 or 7 or 12 or 15
spawn actor 1 at location 1 and 3.
My main point is can I make one rule do something if random is 1 or 3 or 12 or 17
or do i have to make individual rules for each (if)s
Comments
hit the plus sign and add when attribute spwnloc=3
then keep hitting the plus sign to add more conditions and have those when spwnloc= 12 and the next =17
then switch when all conditions are valid to when any conditions is valid
cheers
I changed the random to 1,3
then did that 3 times if=1 if=2 if=3
nothing spawned at all.
Or do
if spawnloc=1
--Spawn
Otherwise
--If spawnloc=2
----Spawn
--Otherwise
----If SpawnLoc=3
------Spawn
----Otherwise
AndSo on.
When ANY :
Spawnloc = 1
Spawnloc = 3
Spawnloc = 12
Spawnloc = 17
Do the spawn ...
Isn't that what you want ?
Roy.
@Jeff post screenshots of your rules if you can. Because if its not working you have it set up wrong or something
cheers