Search Unity

AI?

Discussion in 'FPS.Sample Game' started by Yin4TheWin, Nov 14, 2018.

  1. Yin4TheWin

    Yin4TheWin

    Joined:
    Nov 14, 2018
    Posts:
    1
    I'm planning on turning this into an offline story-based shooter game. How would I go about:
    1. Removing online functions (or at least disabling them)
    and 2. Developing a simple enemy AI?
     
  2. petera_unity

    petera_unity

    Unity Technologies

    Joined:
    May 23, 2016
    Posts:
    41
    Hm. This is a tough question. A lot of the code structure is heavily shaped by the need to be a multiplayer game. So I think it is hard to tell if it is best for you to base your game on this codebase directly or simply build your own where you lift out things from our project as you see fit.

    To get a feel for this, perhaps you could start by prototyping your game on the preview mode. This is what you get when you hit play in the editor and when you have a standalone game and type e.g.
    preview level_00
    .

    The main loop for that mode is found in PreviewGameLoop.cs and it is made up of a mix of server and client systems. We use it for testing purposes so don't be too surprised if a thing or two does not work (some features we have not bothered to make work in preview mode, only in normal game mode).

    I hope this answers your question,

    Peter