1. #1

    how do i change between cameras on a controller button?

    Hi, I made a rock Crawler after alot of trouble! All I need to do now is add a camera in the vehicle and be able to change between this camera and the game camera, preferably by using the Y button on the Xbox controller, please help me as I'm going a bit mad now!
    Share this post

  2. #2

    Re: how do i change between cameras on a controller button?

    add a custom game camera to the vehicle

    use the y button trigger to trigger a state event(set on toggle) to turn on the camera

    if this doesnt work then i can look for another way tomorow
    Share this post

  3. #3
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: how do i change between cameras on a controller button?

    i used a set variable event to set a user value to 1 from 0 that was tied to both the custom camera enable and use as game camera under the advance camera setting.

    to expand on your other thread :/

    you can glue a custom cameras or use a physics joint.
    Share this post

  4. #4

    Re: how do i change between cameras on a controller button?

    Neither of these ways seem to work, I've been messing with it for a while and no luck!
    Share this post

  5. #5
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: how do i change between cameras on a controller button?

    in the main camera (the blue one) set up the interpolation to max.
    Share this post

  6. #6

    Re: how do i change between cameras on a controller button?

    I think the only way I'm gonna be able to do this is if someone uploads a YouTube video showing exactly what I need to do!
    Share this post

  7. #7

    Re: how do i change between cameras on a controller button?

    Originally Posted by sparkierjonesz
    add a custom game camera to the vehicle

    use the y button trigger to trigger a state event(set on toggle) to turn on the camera

    if this doesnt work then i can look for another way tomorow
    Do this, but in addition to the state event also have a camera event (set on toggle & targeting the camera) in the chain too.

    Make sure the custom cam you placed has the enabled box unchecked, possibly change it from interpolate to cut too, depends. And mess around with the advanced cam settings too if need be.

    You will probably bail out when you press Y too, probably better to set it to Right stick click.

    This is from the top of my head, but it should work. Note that you NEED the camera event in the chain for it to take priority over the default game cam when not in range.
    Share this post

  8. #8
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: how do i change between cameras on a controller button?

    place a variable data source set to 0
    place a two input operator set to subtract, operand1=1, operand2=the variable data source
    place a set value event, point 'Value' to the two input operator and point the target to the variable data source

    glue a custom camera inside your motor and open its options, go over 'Enable' hit the y button and point this to the variable data source, set the camera to CUT and open up the advance settings, point 'Use as game camera' to the variable data source as well.

    send your 'Y' button 'On Press' impulse to the set value event.

    open up the main camera options (the blue camera) and set under the advance settings the interpolation speed (i think) to its max value, this stops the custom camera sliding.

    i think i've covered what needs to be done.
    Share this post