Co&Co
01-16-2003, 02:04 PM
A question:
We made a key (dynamic object) and when you walk over it, you will pick it up. So far, so good.... images/icons/smile.gif . But when you pick up the key we want a text printed to the hud and we want the text to stay there till you will use the key. Same when you picked up a key in the hotel, there was a text printed called "Bar Key" in the upper right corner of the hud, like the key is part of your inventory.
We though this would be the right code for it: MPHM_PrintInventory ( int slotID, stringtable text );
but for some reason it doesn't work, the game quits with an error before you can even play the level. We tried some different slotID's, didn't work either. In the "stringtable text" we put in the following: STRING_BAR_KEY, which refers to the stringtable txt. But this won't work for some reason. images/icons/confused.gif
Are we using the correct message?
thx in advance
We made a key (dynamic object) and when you walk over it, you will pick it up. So far, so good.... images/icons/smile.gif . But when you pick up the key we want a text printed to the hud and we want the text to stay there till you will use the key. Same when you picked up a key in the hotel, there was a text printed called "Bar Key" in the upper right corner of the hud, like the key is part of your inventory.
We though this would be the right code for it: MPHM_PrintInventory ( int slotID, stringtable text );
but for some reason it doesn't work, the game quits with an error before you can even play the level. We tried some different slotID's, didn't work either. In the "stringtable text" we put in the following: STRING_BAR_KEY, which refers to the stringtable txt. But this won't work for some reason. images/icons/confused.gif
Are we using the correct message?
thx in advance