View Single Post
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-22-2018 , 04:40   Re: What am I doing wrong? (Crash, code snippet included)
Reply With Quote #3

Did you try the FORCE_GENERATION flag? It exists for the cases where the classname is class-specific (like "tf_weapon_shotgun_soldier").

Code:
TF2Items_CreateItem(OVERRIDE_ALL|FORCE_GENERATION);
__________________

Last edited by asherkin; 05-22-2018 at 04:40.
asherkin is offline