#Coroutine random number issue

1 messages · Page 1 of 1 (latest)

vast loom
#

thread

#

what I expect to be happening is my object gets disabled after the coroutine and the if statements are happening everyframe

lusty bison
#

can I type please

#

nevermind

tiny scaffold
#

@lusty bison you probably forgot about the part of my earlier suggestion of actually checking whether the coroutine is running before starting it.
just adding the bools into the coroutine isn't enough.

tiny scaffold
# lusty bison can I type please

you should also learn to type your full thought before pressing enter. it's incredibly obnoxious needing to wait 5 minutes between half thought out messages

lusty bison
#

sorry

#

I'm very bad when it comes to grammar

#

and I just did it

#

akward silence

tiny scaffold
#

"awkward silence" and yet you've provided no other actionable information so i don't know what you are expecting.

lusty bison
#

I was expecting a response

#

I say akward silence

#

after I say it I wait for a response

tiny scaffold
#

jesus christ, do you want help or not?

deep steeple
#

Boxfriend chill out. If you need a break I can try and help them.

lusty bison
#

YES BUT VERTX JUST JUMPED IN AND WAS LIKE "create a thread and stop spamming" OR "don't just type so'

tiny scaffold
#

alright, you've made it clear you do not in fact want help you just want to spam so i'm done 👋

vast loom
lusty bison
#

no

#

so I didn't make a paragraph

deep steeple
lusty bison
#

ik

#

but these people won't be quiet

#

sorry if I'm being rude

#

I have minor anger issues

deep steeple
#

Your good

#

What’s your issue?

lusty bison
#

sorry

#

I'm not thinking straight

deep steeple
#

It’s ok

lusty bison
#

my coroutine ends but then my randomNumber variable just generates a bunch of random numbers

deep steeple
#

Can you show an example of this

lusty bison
#

video evidence?

#

photo evidence?

deep steeple
#

Maybe a video. Also, provide a link to your code

lusty bison
#

alright

deep steeple
#

Just letting you know, the reason people were getting mad at you is because it was an issue that was taking forever to solve and they wanted to create a thread to avoid cluttering the page.

fickle jungle
#

did you add the if (!myBool) StartCoroutine(...) check?

lusty bison
#

no

fickle jungle
#

then the bool doesn't do anything

lusty bison
fickle jungle
#

why are you avoiding the solution?

lusty bison
#

I'm not

#

people just started arguing

fickle jungle
#

add the check so your coroutine doesn't start if it's already running

vast loom
#

you're continually starting overlapping coroutines, so when you stop starting new coroutines because the clause is met, the rest of the ones you started continue to finish

deep steeple
#

What you need to do is make it run once, then wait until it has stopped running before running again

lusty bison
#

make it run once in start?

deep steeple
#

Using the Boolean that you made, made it set to true at the beginning of the coroutine and false at the end

deep steeple
#

Don’t worry about it

#

It’s just the same thing that I’m saying

tiny scaffold
# lusty bison what's that?

the second or third time i told you to check whether the bool you set in the coroutine is true before starting the coroutine. the entire point of that bool you created earlier

half rivet
#

No

#

Oh wrong tab Discord ffs

deep steeple
lusty bison
#

okay

#

I already did that

tiny scaffold
#

you have to actually check whether the bool is true or not before you start the coroutine

deep steeple
lusty bison
#

do you want me to put my if statement in my other if statement I already made?

#

ok

tiny scaffold
#

yes

deep steeple
#

Please provide a link to your code

fickle jungle
#

their StartCoroutine is inside an if-statement, according to the blurry video

deep steeple
#

Wait what?

lusty bison
#

okay

fickle jungle
#

why not just share code already?

deep steeple
#

Oh, sorry I couldn’t see code

lusty bison
#

yeah I should have done that

deep steeple
#

It’s ok, just give us the link

lusty bison
deep steeple
#

Ok, yes put the if statement inside the other one

lusty bison
#

ok

deep steeple
#

Yes

#

Perfect

#

That should work

lusty bison
#

alr

#

hopefully it works

#

OMG

#

FINALLY

#

THANK YOU

deep steeple
#

Your welcome

lusty bison
#

can I friend you

#

you could be a big help

deep steeple
#

Why not

#

Sure

#

In the future, do exactly what you did in the video by explaining everything, but in a message. Try not to get too personal, this server can be a little passive aggressive at times.