Lexx said:It should be possible if you kill the game after the slideshow. Something along
Code:endgame_slideshow; signal_end_game;
Can't test it right now, but I think that's how I did it in my mod.
Thanks, Lexx. I'll check it out.
It works, but the item must have special Flags set in the proto file. Give it the "UseOn" and NOT "Use" flag. Also it does only work with normal items, not with drugs, if I remember correct. So you will need to script the whole effect. Pretty annoying, but I couldn't find any other way that worked good.
If it really works that way, then I guess I can live with it. But I remember I did some misc_item type thing which also had a scripted effect, and it didn't work that way for me, even though I disabled the "Use" option and only enabled "Use On". I ended up giving that item a separate script, since it was a unique thing in the game.
/Edit: While we are at it, is there a script command to close the inventory?
I don't know one.