The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Key Not Being Removed From Inventory After Use
AGP Offline
Senior Member

Posts: 448
Threads: 45
Joined: Dec 2012
Reputation: 23
#1
Key Not Being Removed From Inventory After Use

Just as the title says, I have an issue with a level door key not being destroyed after its use (in the 00_map). I checked my files and it seems to be scripted correctly, but then again, I'm new to this, so I'm more than likely wrong.

I attempted to just make a script file for the next map and remove the item from the inventory there (the 01_map) by using the following script:

void RemoveItem("leveldoorkey_1");

That didn't work so I removed the void and the map loaded with the key still in the inventory. Moved it to the void OnStart section, still nothing.

Okay, so my hps scripts look like this:

AddUseItemCallback("OpenDoor", "leveldoor1_key", "leveldoor1", "UnlockLevelDoor", true);

From what I understand, the last parameter is for auto removal of the item once it's been used.

Help will be greatly appreciated and met with a very outstanding "thank you!"

(This post was last modified: 12-07-2012, 07:07 PM by AGP.)
12-07-2012, 07:03 PM
Find


Messages In This Thread
Key Not Being Removed From Inventory After Use - by AGP - 12-07-2012, 07:03 PM



Users browsing this thread: 1 Guest(s)