How do i give player weapon instead of using player Loadout!
Forum rules
To request support/assistance for MFPS, you first have to verify your purchase by sending your purchase invoice number to Lovatto in a PM.
To request support/assistance for MFPS, you first have to verify your purchase by sending your purchase invoice number to Lovatto in a PM.
- Luddeisbad
- Contributor
- Posts: 11
- Joined: Sat Sep 11, 2021 9:57 pm
I want to know how to "delete" Player loadouts because i am trying to implement a buy menu for each game !
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
First, you will have to modify bl_GunManager.cs to not equipped the weapons from the player class loadout,
check the Awake() and Start() function of that script.
To set a weapon to a specific slot you can call the function of bl_GunManager.cs -> ChangeTo(int AllWeaponsIndex);
where 'AllWeaponsIndex' is not the GunID (from GameData) but the index of the FPWeapon in the AllGuns list of bl_GunManager.
I hope this help,
Regards.
check the Awake() and Start() function of that script.
To set a weapon to a specific slot you can call the function of bl_GunManager.cs -> ChangeTo(int AllWeaponsIndex);
where 'AllWeaponsIndex' is not the GunID (from GameData) but the index of the FPWeapon in the AllGuns list of bl_GunManager.
I hope this help,
Regards.
- Luddeisbad
- Contributor
- Posts: 11
- Joined: Sat Sep 11, 2021 9:57 pm
I do not understand i wrote the code and took the index "5" from the "all gun" and it should give me "Pistol1" but it dosen't! please help
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact: