Help me plz, error opening the safe out of the game.

Results 1 to 4 of 4
  1. #1
    Newbie rengen is offline
    MemberRank
    Feb 2014 Join Date
    5Posts

    shout Help me plz, error opening the safe out of the game.





    Code:
    #pragma once
    
    #include "GameCommon.h"
    #include "NPCObject.h"
    
    
    class obj_VaultNPC : public NPCObject
    {
        DECLARE_CLASS(obj_VaultNPC, NPCObject)
    
    
    public:
        obj_VaultNPC();
        virtual ~obj_VaultNPC();
    
    
        virtual    BOOL OnCreate();
    
    
        virtual void OnAction();
    };


    Code:
    #include "r3dPCH.h"#include "r3d.h"
    
    
    #include "GameCommon.h"
    #include "obj_VaultNPC.h"
    #include "UI\HUDVault.h"
    
    
    IMPLEMENT_CLASS(obj_VaultNPC, "obj_VaultNPC", "Object");
    AUTOREGISTER_CLASS(obj_VaultNPC);
    
    
    extern HUDVault* hudVault;
    
    
    obj_VaultNPC::obj_VaultNPC()
    {
    }
    
    
    obj_VaultNPC::~obj_VaultNPC()
    {
    }
    
    
    BOOL obj_VaultNPC::OnCreate()
    {
        m_ActionUI_Title = gLangMngr.getString("ActionUI_VaultTitle");
        m_ActionUI_Msg = gLangMngr.getString("HoldEToAccessVault");
        return parent::OnCreate();
    }
    
    
    void obj_VaultNPC::OnAction()
    {
        hudVault->Activate();
    }


  2. #2
    Elite Member therehere3 is offline
    Member +Rank
    Sep 2013 Join Date
    166Posts

    Re: Help me plz, error opening the safe out of the game.

    Now when you say: "out of the game" does that mean you were in a safezone and clicked the "Inventory" button?

  3. #3
    Newbie rengen is offline
    MemberRank
    Feb 2014 Join Date
    5Posts

    Re: Help me plz, error opening the safe out of the game.

    Quote Originally Posted by therehere3 View Post
    Now when you say: "out of the game" does that mean you were in a safezone and clicked the "Inventory" button?

    Yes, exactly!

    - - - Updated - - -


  4. #4
    Elite Member therehere3 is offline
    Member +Rank
    Sep 2013 Join Date
    166Posts

    Re: Help me plz, error opening the safe out of the game.

    Quote Originally Posted by rengen View Post
    Yes, exactly!

    - - - Updated - - -

    Your "vault" has not been programmed in, and the "market" in-game is working 100% however it goes straight to your GI not inventory.
    You need to look up a tutorial on how to add the vault working.



Advertisement