Announcement

Collapse
No announcement yet.

Storing innactive weapon

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Storing innactive weapon

    How is innactive weapon stored in game?
    Firstly it's spawned as object in game and become active. And what happens when it becomes innactive? How game calls it back (as new spawn() or another way)?

    #2
    The default weapon system in UT utilizes the InventoryManager to keep track of all Inventory (including Weapons) that a Pawn possesses.
    When a weapon is switched, the InventoryManager makes sure to tell the active weapon to go into it's inactive state, play PutDown animations, become hidden, unhides the new weapon, plays the animation for bringing the weapon up and puts it into it's active state.

    Comment


      #3
      So when weapon is innactive, it's just invisible to player, but still is his hands?

      Comment


        #4
        It's still owned by the player, but it's not in a usable state. Yes.

        Comment

        Working...
        X