Gun race ERROR

Report bugs of MFPS 2.0 here
Post Reply
User avatar
volfase
Member
Member
Posts: 19
Joined: Sun Mar 18, 2018 2:14 am
Location: Finland
Contact:

Sat Jan 18, 2020 8:44 am

Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs(93,13): error CS0103: The name 'm_Current' does not exist in the current context

i am using latest gun race addon and latest mfps 2.0
User avatar
Lovatto
Admin
Admin
Posts: 1132
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Fri Jan 24, 2020 7:13 pm

For fix, in bl_GunManager.cs -> Start() -> replace this code:

Code: Select all

#if GR
        if (isGunRace)
        {
            PlayerEquip[0] = GunRace.GetGunInfo(AllGuns);
            m_Current = 0;
        }
#endif
with:

Code: Select all

#if GR
        if (isGunRace)
        {
            PlayerEquip[0] = GunRace.GetGunInfo(AllGuns);
            currentWeaponIndex = 0;
        }
#endif
Post Reply