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"

Moving Stairs: Transform object along Z axis up to players Z position.

Hey guys, decided to just play around in UE4, apparently I attempted my first blueprint way out of my skill scope.

I am trying to make a stick/log move up to players feet from below when player approaches it (like a dynamic stairs or something).

Like this: http://i.imgur.com/hEVpHfP.png

Here is my logic (probably wrong, if someone is good at it please can you point out what's not going together? )

http://i.imgur.com/7qACxcL.png However, I don't know how to activate the event when player approaches it for example: Any Z, but X and Y: current platform location - 50 units for example.

I am not sure why did I add timeline, I wanted to try and set something like Value in timeline according to players Z location and smooth it out but there is no input for it.

Thank You.

Product Version: UE 4.9
Tags:
more ▼

asked Oct 17 '15 at 09:58 AM in Blueprint Scripting

avatar image

arleitiss
12 1 1 5

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

1 answer: sort voted first

Hi man . here an example, i made an elevator with 4 box, the first is the elevator model, and will be visible and playable. the initial and final pose, are two cube, that i place at the starting position , and at the final position of the elevator. I made this instead 2 vectors, because this way you can see where you are placing the elevator, instead make dozen of tests. And you can re-use this elevator , just adjusting the final pose, in the view mode. he will reach different highs. At the end there is a BOX, its a invisible collision , that when something enter it , will wait a bit, and then active the elevator.

The elevator have 2 direction , 1, is up to final pose , 0 go to initial pose. So once he get activation , he check his direction and (LERP) interpolate a position between the two cubes. When he reach the final pose, he switch the boolean, making him go to the opposite direction. When the initial pose is reached, he switch back the direction for the next ride, and also switch himself back to off.

You probably want to add a timer, that keep the elevator in place for a couple of seconds. So you should try to add a gloat likemy LERPER, and make him control a boolean , that get checked before switch direction .

alt text

elevator.jpg (330.6 kB)
more ▼

answered Oct 17 '15 at 03:08 PM

avatar image

Est_engine
1.2k 58 12 62

(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