x

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"

How to update "CameraShake" properties during gameplay?

Hello,

I have a standard CameraShake blueprint that is inherited from parent class CameraShake, and it is working properly. How can I get a reference to this BP, so that I can update/change some of its parameters (such as rot oscillation > pitch > amplitude, frequence, etc.) during gameplay?

Kind Regards,


**EDIT: As I got no reply to my question above, it might be much better if I try to make myself clear, and try again.

Speaking of the "CameraShake" actor properties below; we know that these properties are editable during design time. I wonder if there is a way that we can change these values during gameplay using blueprints. Any ideas?

Kind Regards,

alt text

Product Version: Not Selected
Tags:
more ▼

asked Oct 19 '14 at 09:52 AM in Blueprint Scripting

avatar image

Dynamo
92 10 16 18

avatar image Dynamo Oct 23 '14 at 09:45 AM

Still no answers :(

Although I have managed to create a reference to my CameraShake BP by promoting a variable from ClientPlayCameraShake's "Shake" node and then setting the default value to my BP, I still can not get/set shake properties! I start to wonder if these properties can only be set during design time, but not in realtime!

alt text

Since this topic has not been discussed thoroughly in UE4 AnswerHub, still remains a mystery, at least for me. I'll be more than happy if someone would be kind enough to give me a hand.

Kind Regards,

avatar image Dynamo Nov 05 '14 at 02:23 PM

Still no answers...

I presume, this feature is not implemented yet in blueprints. If yes, it is on my Christmas wish list ;)

Kind Regards,

avatar image Giovannini Feb 04 '15 at 04:36 PM

Did you ever find a solution? I'm aiming to do the same thing as you.

avatar image Dynamo Feb 06 '15 at 10:18 PM

I am afraid, I still have no solution for this issue, Giovannini :(

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

2 answers: sort voted first

I think editing the parameters of CameraShake in run-time is not possible (in blueprint). It also seems to me that this is intentional.

CameraShake supports both oscillation and animation. You can switch between different CammeraShake parameter sets on the fly. You can scale and rotate it run-time.

If you need something super, super custom from your camera movement it might not be considered "shake" anymore. There is another class called CameraModifier which runs after the CameraManager class with a dedicated ModifyCamera() function.

Quite frankly, I cant think of a scenario where my shake can't do all I need just by scaling and rotating it. Can I ask what the end goal here might be?

more ▼

answered Jul 13 '18 at 09:43 PM

avatar image

dZh0
1.3k 6 5 9

avatar image A3RO77 Sep 29 '18 at 07:47 PM

You can override function BlueprintUpdateCameraShake in Camera Shake.

avatar image markus_zhang Mar 27 '19 at 02:54 AM

Hi, just wondering how do I scale a Camera Shake? The only scalable variables on the Play World Camera Shake BP are: Inner Radius, Outer Radius and Falloff, which are not useful. Basically what I'm trying to achieve is to adjust camera shake according to landing speed, which can be easily grabbed by Get Velocity.

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

I'm also looking for solutions for this problem and so far the only legible solution seems to be using C++ directly.

https://unrealcpp.com/camera-shake/

Edit

Actually found a BP solution, check here: https://answers.unrealengine.com/questions/414311/camera-shake-speed-scaling.html

more ▼

answered Mar 27 '19 at 02:52 AM

avatar image

markus_zhang
1 1 2

(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