Using editable variables?

anonymous_user_0e3d41b3
Wed, 25 Nov 2015 14:27:32 +0000
Blueprint

I am trying to develop this method of door teleporting through the use of booleans and waypoints. The game consists of heading to doors that will lead to different places in different conditions.

What I do is:
-check if the player is outside,

-then if so I get all actors of class of my waypoints in the level,

-each one of them have a position editable int and an arrow

I added one in each side of the doors and their “Position” numbers.

Then, I will check if the number of the waypoint is equal to a certain one (e.g. inside of kitchen)

If true, get all actors of class of doors where each one has a door number Int

If it’s equal to that door number, it will teleport to the waypoint whose “Position” variable it found by getting the location of the waypoint and also the rotation of the arrow and where it’s faced.

There is a problem which is it sends me to the last waypoint number it exists, not the waypoint position variable I get.

List item

Am I missing anything regarding get all actors of class?

I might be wrong, but I thought when it gets to the waypoint of my choice, it would also get it’s position.

9 posts - 1 participant