how do i make this logic system?
i have a box that senses walls on X/Z if it senses a wall on -/+ X then it will tell another box not to follow the play for X directions same for Z but...
how do i separate the -X from +X in a follower? like turn off the followers -X so only +X will follow the player and -X does nothing?
i need this because if the player is near a wall that's on +x then that turns off the X of the follower completely and wont follower the player for -X when i want it to.
-
I'm not entirely sure I'm following what your asking, but if you have a value "X" that you want to run different logic on depending on whether it's +/-, then run it through a splitter. That'll split the value of X into a + and - component.
-
you know the follower logic movement of X axle i cant split the +X from -X, what i want is that a follower will follow +x meaning it can follow the player to the right but not to follow -X meaning it wont follow the player to the left.
basically to have a follower that has 4 directions -/+ X and Z but to stops 1 of the directions so it will only follow for the other 3 directions. -
I think the follower has an output for the target position. Compare the X of that with the X of the object (you can split out a tag to get that). If target > current, set the X strength of the follower to normal. Otherwise leave it at 0.
-
'@TAPgiles that works so i just need to cut the power of -X then feed it to the mover so it can only follow +X.
when using a combiner into a mover it doesn't auto pick the input unlike the splitter with outputs, isnt that a bug?
also the problem with this is the follower will still follow -X until its at 0 being the centre of the scene, so lets say i have 0 for -X and 30 for +X the follower will still move left until +X is 0 then it wont follow.
請登入寫評論。