Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

FPC control another FPC via ingame terminal

Discussion in 'Scripting' started by Millhouse1024, Jan 21, 2020.

  1. Millhouse1024

    Millhouse1024

    Joined:
    Aug 4, 2019
    Posts:
    2
    So I am very new to unity so be kind :)

    I have built a 3dmodel (terminal) that I want to interact with via keydown E - When interaction starts I want my FPC (Character) to switch to another FPC until I press another key for eg keydown esc which brings me back to my original FPC (Character)

    The second FPC is a drone and first is my character.

    So basically want to be able to remotely control a drone ingame.

    Any pointers as to where to start?

    I have found a few bits of info but are using JS

    Thanks
     
  2. Lethn

    Lethn

    Joined:
    May 18, 2015
    Posts:
    1,583
    For this particular idea you should learn about activating and deactivating objects and specific components, in this case you'll need to activate and deactivate a camera in runtime as well as the script which controls your player and your drone.
     
  3. Millhouse1024

    Millhouse1024

    Joined:
    Aug 4, 2019
    Posts:
    2
    Makes sense - Thank you will start tinkering around :)