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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Calling set world transform giving different results?

Hello,

I am at a complete loss here, it must be something I'm doing as both methods use the exact same function yet both give different results. So i have a sphere controlled by the user and i'm trying to make it teleport on hitting a box trigger, however the static mesh moves to the correct location but the camera doesn't follow. If I call the same function from a key press both the camera and sphere move to the correct location. I have no idea what it could be any ideas ?

This is how the component is set up

alt text

This is the function being called [just set to random place for testing] alt text This is called from same blueprint as the teleport function and works when called alt text

This is called from another blueprint when the sphere overlaps the box trigger alt text This is the failed result when calling from the previous image as you can see the spring arm/camera stays (red light is where the sphere was) and the sphere dissapears to the correct location (i have checked and can confirm this).

Yet when calling from a key press it works as expected? alt text

Any help would be appreciated as I am lost.

G

Product Version: UE 4.9
Tags:
more ▼

asked Sep 23 '15 at 07:44 PM in Blueprint Scripting

avatar image

gaz99
28 3 6 9

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

1 answer: sort voted first

Hello gaz99,

It seems like you're performing an excessive check. Checking the other comp against the sphere will not work, because the other comp is actually whatever collision you have on the sphere. So in order for this to work, you'd have to compare the collision itself (capsule, box, etc), or just eliminate the check entirely, as I have done in my blueprint, which is pictured below. I have used a capsule instead of a box in my example, and my ThirdPersonCharacter is the same as your player, so you'll have to make the necessary adjustments in your blueprint.This should allow you to get the desired result.

alt text

Have a great day,

Sean Flint

more ▼

answered Sep 23 '15 at 08:35 PM

avatar image

Sean L ♦♦ STAFF
43.6k 485 152 442

avatar image gaz99 Sep 24 '15 at 01:01 PM

I tried setting up as you mentioned but it still produces the same result. I have no idea as the two methods called the same function, but they produce different results

avatar image Sean L ♦♦ STAFF Sep 24 '15 at 01:15 PM

Hello gaz99,

I would like you to try and recreate the scenario in a new project. Rather than using the components that you have created in your current project, use the third person character as the player, and just create a simple box or capsule collision inside of an actor blueprint. This will allow you to see whether there is something wrong with the way the blueprint is being set up, or if there was some setting in your original project that is causing this issue.

I look forward to hearing your results.

Have a great day,

Sean Flint

avatar image gaz99 Sep 27 '15 at 05:52 PM

Hey,

Tried in a blank project and it works as expected so it must be something I've done in my project and the way i set up the blueprint. Thanks for the help

Gaz

(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