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"

set camera shake duration in code

I want to play a client camera shake animation, but be able to specify a osculation duration when I call it. I created a blueprint with the parent class CameraShake I see in the class defaults you can change it but I want to change it when I call play on it. I can't seem to figure out how to set that variable. I could probably override the tick function or something and use my own to shake the camera, but that's a lot of work to just set the duration dynamically before starting the shake.

Product Version: UE 4.8
more ▼

asked Jul 28 '15 at 06:37 PM in Blueprint Scripting

avatar image

1 1 2 1

avatar image MusicMonkey5555 Aug 11 '15 at 10:38 PM

I ended up setting the oscillation duration to 100 seconds and then setting a timer for the specified number of seconds to force stop it. I tried setting the oscillation duration to -1, but that doesn't seem to work as described. Although this is a bit of a hack it works. It would be nice if there was a less hacky way of doing it. Also would be nice if there wasn't the 100 second limit and I could use -1 as described.

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

0 answers: sort voted first
Be the first one to answer this question
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