주 콘텐츠로 건너뛰기

검색

how do i make this logic system?

  • cgCody

    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.

  • EternalDarknessz

    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.

  • TAPgiles

    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.

  • EternalDarknessz

    '@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.

댓글을 남기려면 로그인하세요.