How to make cannon reload?

Discussion in 'Programming' started by Gavril T-series, Aug 18, 2016.

  1. Gavril T-series

    Gavril T-series
    Expand Collapse

    Joined:
    Apr 10, 2016
    Messages:
    86
    Hallo.
    I am trying to make reload functinon for cannon, but I can't really imagene how to do this. I want see it like a spawn a new ball after shoot after a some time.
    Have any ideas?
     
  2. BreadForMen

    BreadForMen
    Expand Collapse

    Joined:
    Apr 5, 2013
    Messages:
    203
    As far as I know, there isn't a way to reload it except by reloading the entire vehicle.
     
  3. NistingurA

    NistingurA
    Expand Collapse

    Joined:
    Nov 22, 2013
    Messages:
    2,092
    The only way I could imagine it to be done is to fire the "first" ball.. After some time or when pressing a specific button, said "first" ball will despawn and the "second" ball will spawn inside of the cannon.. The thing is that the position of the canon is not static so say it´s not always 100.100.100 ... You would have to bind this "Spawnpoint" To a node on the vehicle itself
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice