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 строка 746
747 {
748
750 return true;
751
752
754 return true;
755
756
758 return true;
759
760 return false;
761 }
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().