Help me plz, error opening the safe out of the game.
http://i.imgur.com/i6MVcbm.jpg
http://i.imgur.com/KP1pvBD.png
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();
};
http://i.imgur.com/OOWLRz3.png
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();
}
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?
Re: Help me plz, error opening the safe out of the game.
Quote:
Originally Posted by
therehere3
Now when you say: "out of the game" does that mean you were in a safezone and clicked the "Inventory" button?
Yes, exactly!
- - - Updated - - -
http://www.youtube.com/watch?v=OsWGx...ature=youtu.be
Re: Help me plz, error opening the safe out of the game.
Quote:
Originally Posted by
rengen
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.