Search Unity

How to make 1st view go foward automatically?

Discussion in 'Scripting' started by Lunaria, Jan 12, 2014.

  1. Lunaria

    Lunaria

    Joined:
    Nov 21, 2013
    Posts:
    1
    -I don't know where to write these type question, so I write in here.-

    Hello
    I'm a newbie in this forum and Unity.


    I want to make a game.
    In there, main mode is 1st Person View mode.

    Like an FPS game, when the condition is complied, the player goes forward in course.
    But, in this game, the player goes forward automatically with 1st character view whether condition is complied, or not.
    And, in FPS, you can go anywhere with controller, but in this game, I want to make player go only in specified path.


    To write pseudo-code, like this :
    Go foward slowly in path.
    -If Player killed all enemy in sight,
    -= Go foward faster.

    Is it possible in C# code? If possible, I would like you to give an example.
    I've searched FPS tutorials, or Arcade tutorials, but I couldn't find what I said.

    Thx for reading.