static mesh rotation control

Im trying to control the rotation of a mesh thru a button… but im getting some brain sides problem.

On Static mesh blueprint:

If rotation starts with event tick the rotation is continuous but i can’t be paused, start or reset it
If rotation starts with custom even and used in the Gui widget blueprint, it can be controlled but the rotation is on each click… like click/rotate - click/rotate - click/rotate…

any idea how to control the even tick or have a continuous rotation triggered snd controlled by a button?

ty

1 Like

Put a bool on the event tick ‘will rotate’.

Use the button to make it true or false :slight_smile:

sorry, i might be afraid im lost again…

oh ok thanks…

but since i have no idea how to start and stop the event tick thru a button in my gui widget blueprint…

1 Like

When you press the button set it to true or false… just like you have now

except set the bool.

Thank you… im managed to get the “SET” who seem to be the bool on the static mesh blueprint.

i have no idea how to construct what’s after the get actor of all class… the return value is called out actors on mine…

total mystery

that’s the closest i can get… i don’t even know what “when you press the button set it to true or false”… means

This button

yes, this button i can click on… but i don’t really see where i can set it to true or false…

sorry

This is my clicking my button and changing the variable

Drag from the variable and look for ‘NOT’

thank you… and the variable is? the button, the bool present on the static mesh blueprint? i don’t get it…

1 Like

well after trying all the “not” available, non looks like yours and it still not controlling a rotation.

Anyway, thanks a lot because im learning a lot of new stuff but i realise, as far as i can see, it’s very complicated to get a straight and factual answer to a simple question. Looks like everybody knows but no one is able to share information clearly.

Im a teacher my self and the first thing you learn is… if you don’t want to do it, don’t do it, waisting time and energy is useless for everybody, teacher and student included.

thanks

Well, after digging somehwere than here i got the thing done…

but still not working, 1 hour later, same place, same result, still can’t tell a button to rotate an object or not.