📂
Bannerlord Modding CN
  • 骑马与砍杀2 领主 Mod 制作文档
  • C# API Documentation
    • Core
      • MBObjectManager
      • GameModel
      • InformationManager
      • BasicCharacterObject
      • Game
      • ItemObject
    • Campaign System
      • GameMenu
      • Settlement
      • CampaignGameStarter
      • actions
        • ChangeOwnerOfSettlementAction
      • TournamentGame
      • Hero : MBObjectBase, ITrackableCampaignObject, ITrackableBase
      • CampaignBehaviorBase
    • Mount And Blade
      • MissionBehaviour
        • MissionView
        • MissionLogic
      • MBInitialScreenBase
      • Mission
      • MBSubModuleBase
      • agent
      • Team
    • Input System
      • Input
    • Engine
      • GlobalLayer
      • ScriptComponentBehaviour
      • Scene
      • GameEntity
    • Library
      • ModuleInfo
    • Platform Service
    • Save System
    • Localization
      • MBTextManager
      • TextObject
    • Network
    • Two Dimension
  • XML Documentation
    • NPCCharacters
      • NPCCharacter(NPC角色)
        • upgrade_targets
          • upgrade_target
        • equipmentSet
          • equipment
        • Face
          • BodyProperties
          • hair_tags
            • hair_tag
          • BodyPropertiesMax
          • beard_tags
            • beard_tag
          • face_key_template
        • equipment
        • skills
          • skill
        • Traits
          • Trait
    • 物品(大类) Items
      • 物品 Item
        • 物品组件 ItemComponent
          • 马匹 Horse
            • Materials
              • Material
                • MeshMultipliers
                  • MeshMultiplier
          • 防具 Armor
          • Weapon
            • WeaponFlags
          • 食物 Food
        • 旗帜 Flags
      • CraftedItem
        • Pieces
          • Piece
    • Items (XML)
    • Scenes
      • Scene
        • GameType
        • TerrainType
          • TerrainType
    • SPCultures (XML)
    • SPCultures
      • Culture
        • female_names
          • name
        • male_names
          • name
        • clan_names
          • name
    • Atmosphere (XML)
    • SubModule (XML)
    • Scenes (XML)
    • NPCCharacters (XML)
  • Gauntlet
    • Brush
    • GauntletLayer
    • GauntletMovie
    • SceneLayer
    • Movie (XML)
    • Widget
    • GauntletView
    • ScreenBase
    • ViewModel
    • ScreenManager
  • Introduction
    • 高级用法
    • 开始第一步
    • 文件夹结构
    • Defining custom data
  • Tutorials
    • 将你的mod打包上传至Vortex
    • Making Banners
    • 不需要C#的UI系统Mod入门 #
    • 基本 C# Mod
    • new_settlements
  • ru
    • _intro
      • Начало
      • Структура папок
Powered by GitBook
On this page
  • Parent Node
  • Child Node
  • Attributes

Was this helpful?

  1. XML Documentation
  2. 物品(大类) Items
  3. 物品 Item
  4. 物品组件 ItemComponent
  5. Weapon

WeaponFlags

PreviousWeaponNext食物 Food

Last updated 4 years ago

Was this helpful?

Parent Node

Child Node

  • None

Attributes

| | | | | | | | | | | | | | | | | | | | | | | |

  • MeleeWeapon

    类型: boolean 接受值: 'true', 'false' 例子: true If the weapon is a melee weapon

  • RangedWeapon

    类型: boolean 接受值: 'true', 'false' 例子: true If the weapon is a ranged weapon

  • HasString

    类型: boolean 接受值: 'true', 'false' 例子: true If the ranged weapon has a string. Should be set to true for both Bows and Crossbows

  • StringHeldByHand

    类型: boolean 接受值: 'true', 'false' 例子: true If the string is held by hand. Should be set to true with Bows

  • NotUsableWithOneHand

    类型: boolean 接受值: 'true', 'false' 例子: true If the weapon cannot be used in 1 hand

  • TwoHandIdleOnMount

    类型: boolean 接受值: 'true', 'false' 例子: true This is set to true with most bows and crossbows. TODO: figure out what this exactly does.

  • AutoReload

    类型: boolean 接受值: 'true', 'false' 例子: true If set to false an action is required to reload the weapon. (crossbows)

  • UnloadWhenSheathed

    类型: boolean 接受值: 'true', 'false' 例子: true If the weapon should remove any loaded projectile when sheathed

  • PenaltyWithShield

    类型: boolean 接受值: 'true', 'false' 例子: true If the weapon has a damage penalty when using with shield

  • WideGrip

    类型: boolean 接受值: 'true', 'false' 例子: true TODO: figure out what this does

  • CantReloadOnHorseback

    类型: boolean 接受值: 'true', 'false' 例子: true If the weapon can be reloaded on horseback

  • Consumable

    类型: boolean 接受值: 'true', 'false' 例子: true If the weapon can be consumed. Set to true for arrows and throwables.

  • UseHandAsThrowBase

    类型: boolean 接受值: 'true', 'false' 例子: true If the weapon is thrown from the hand

  • AmmoSticksWhenShot

    类型: boolean 接受值: 'true', 'false' 例子: true TODO: figure out what this exactly does

  • MultiplePenetration

    类型: boolean 接受值: 'true', 'false' 例子: true If the projectile can pierce through multiple entities

  • Burning

    类型: boolean 接受值: 'true', 'false' 例子: true If the projectile is on fire. TODO: figure out if this also inflicts fire damage, or sets fire to stuff

  • LeavesTrail

    类型: boolean 接受值: 'true', 'false' 例子: true If the weapon leaves a trail. TODO: figure out what this exactly does

  • CanPenetrateShield

    类型: boolean 接受值: 'true', 'false' 例子: true If the projectile can penetrate a shield

  • MissileWithPhysics

    类型: boolean 接受值: 'true', 'false' 例子: true If physics are attached to a projectile. TODO: figure out if this is used to damage props as well.

  • AmmoCanBreakOnBounceBack

    类型: boolean 接受值: 'true', 'false' 例子: true TODO: figure out what this exactly does

  • AffectsArea

    类型: boolean 接受值: 'true', 'false' 例子: true TODO: figure out if this is AOE damage?

  • AmmoBreaksOnBounceBack

    类型: boolean 接受值: 'true', 'false' 例子: true TODO: figure out what this exactly does

  • AttachAmmoToVisual

    类型: boolean 接受值: 'true', 'false' 例子: true TODO: figure out what this exactly does

  • CanBlockRanged

    类型: boolean 接受值: 'true', 'false' 例子: true If an item can block projectiles (shields)

  • HasHitPoints

    类型: boolean 接受值: 'true', 'false' 例子: true If an item has hitpoints (shields)

Weapon
MeleeWeapon
RangedWeapon
HasString
StringHeldByHand
NotUsableWithOneHand
TwoHandIdleOnMount
AutoReload
UnloadWhenSheathed
PenaltyWithShield
WideGrip
CantReloadOnHorseback
Consumable
UseHandAsThrowBase
AmmoSticksWhenShot
MultiplePenetration
Burning
LeavesTrail
CanPenetrateShield
MissileWithPhysics
AmmoCanBreakOnBounceBack
AffectsArea
AmmoBreaksOnBounceBack
AttachAmmoToVisual
CanBlockRanged
HasHitPoints