public CFibreReg SpawnItem(CFibre Fibre, int ArgCount) { if (ArgCount < 5) { return(null); } bool match = true; int ownerId = Fibre.GetInt(0, ref match); string itemName = Fibre.GetString(1, ref match); int posX = Fibre.GetInt(2, ref match); int posY = Fibre.GetInt(3, ref match); int rot = Fibre.GetInt(4, ref match); if (match) { CItem item = _world.SpawnItem(CGame.AssetManager.GetAsset <CItemAsset>(itemName), new Vector2(posX, posY), rot, ownerId); return(new CFibreReg(item.mID)); } return(new CFibreReg(0)); }