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 строка 748
749 {
750
752 return true;
753
754
756 return true;
757
758
760 return true;
761
762 return false;
763 }
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().