12-07-2012, 07:03 PM
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!"
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!"
but, by what I can see, that's the issue.