Unable to set linear physics velocity in 4.15. Contruction script
I am following one of the scripting tutorials located at the Unreal Engine Youtube channel: Blueprint Quickshot: Expose on Spawn | 11 | v4.7 Tutorial Series | Unreal Engine
After adding the empty actor and the scene and static mesh components, the instructor adds a vector variable makes it public and exposes it on spawn. We enable physics on the static mesh and proceed to the construction script to set up the functionality. We drag the static mesh variable into the construction script and then drag off a node to set the physics linear velocity, that is @ the 2 minutes and 20 seconds mark exactly.
In the version of Unreal I am using 4.15, that node is unavailable in the construction script with this variable. I have tried unchecking context sensitive and not dragging off from the node so I could just create that node and wire them up. It does not appear in the construction script under any circumstances. I did find it on the event graph but that is not where we are using it in the tutorial.
I have a screenshot from the construction script:
There are a few other options pertaining to velocity but none look like what he is using in the tutorial, has this functionality changed? Am I doing something incorrectly?
Thank you very much.
asked Jun 10 '17 at 08:49 PM in Blueprint Scripting
Dude, construction script only fires when the actor is created on the level or changed in properties. As far as I know, construction script does not fire when the game starts, it only fires inside the editor before running the game. So what ever your plan is, try to create a function instead and set your velocity there, then try to execute the function inside class BP event graph or level BP event graph. Don't be so obsessive about old or new changes inside the engine. UE4 evolves during times as you should.
answered Jun 10 '17 at 09:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here