Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Best way to smoothly rotate actor?

I have a weapons spawner and i want it to rotate the weapon it currently has. I have tried to use event tick but that is really bad for performance is there another way?

Thanks in advance

Product Version: Not Selected
more ▼

asked Jul 10 '16 at 05:21 PM in Blueprint Scripting

avatar image

Friendly Spycrab
3 3 5 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi there,

the simplest solution i can imagine is using a timeline.

And then create a float track and set it to looping from 0 to 360 and use this as your rotation value.

This is a simple example I wrote to demonstrate how to rotate a cube:

In the level blueprint: alt text Inside the Rotation Timeline: alt text Beware you have to set the object from static to movable or it wont work: alt text

rotation.jpg (92.9 kB)
rotation2.jpg (65.3 kB)
rotation3.jpg (53.2 kB)
more ▼

answered Jul 10 '16 at 09:30 PM

avatar image

503 13 9 34

avatar image fabianu Jul 10 '16 at 09:31 PM

and if you need it, here is the timeline documentation: https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Timelines/

avatar image Friendly Spycrab Jul 10 '16 at 10:28 PM

thanks it worked

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question