General method trying to attch magazine, fill inner magazine and fill chamber.
- Аргументы
-
| [in] | magazineType | string The magazine to attach or ammo to load, passing in empty string will select random |
| [in] | flags | int Setup flags, please read WeaponWithAmmoFlags |
- Возвращает
- whether anything was spawned or done
См. определение в файле Weapon_Base.c строка 740
741 {
742
744 return true;
745
746
748 return true;
749
750
752 return true;
753
754 return false;
755 }
Magazine SpawnAttachedMagazine(string magazineType="", int flags=WeaponWithAmmoFlags.CHAMBER)
Try to spawn and attach a magazine.
bool FillInnerMagazine(string ammoType="", int flags=WeaponWithAmmoFlags.CHAMBER)
Try to fill the inner magazine.
bool FillChamber(string ammoType="", int flags=WeaponWithAmmoFlags.CHAMBER)
Try to fill the chamber.
Перекрестные ссылки FillChamber(), FillInnerMagazine() и SpawnAttachedMagazine().
Используется в OnDebugSpawn().