本文整理汇总了Python中services.spawn.MobileTemplate.setWeaponTemplates方法的典型用法代码示例。如果您正苦于以下问题:Python MobileTemplate.setWeaponTemplates方法的具体用法?Python MobileTemplate.setWeaponTemplates怎么用?Python MobileTemplate.setWeaponTemplates使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类services.spawn.MobileTemplate
的用法示例。
在下文中一共展示了MobileTemplate.setWeaponTemplates方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setWeaponTemplates [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('eow_dark_jedi_sentinel_uber')
mobileTemplate.setLevel(90)
mobileTemplate.setDifficulty(2)
mobileTemplate.setAttackRange(6)
templates = Vector()
templates.add('object/mobile/shared_dressed_dark_jedi_master_female_twk_01.iff')
templates.add('object/mobile/shared_dressed_dark_jedi_master_female_twk_02.iff')
templates.add('object/mobile/shared_dressed_dark_jedi_master_female_zab_01.iff')
templates.add('object/mobile/shared_dressed_dark_jedi_master_female_zab_02.iff')
templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_01.iff')
templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_04.iff')
templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_05.iff')
templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_06.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weaponTemplates.add('object/weapon/melee/sword/crafted_saber/shared_sword_lightsaber_one_handed_gen5.iff')
weaponTemplates.add('object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_gen5.iff')
weaponTemplates.add('object/weapon/melee/polearm/crafted_saber/shared_sword_lightsaber_polearm_gen5.iff')
mobileTemplate.setWeaponTemplates(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('saberHit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('jedi_master', mobileTemplate)
示例2: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setWeaponTemplates [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('tusken_raider')
mobileTemplate.setLevel(90)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(24)
templates = Vector()
templates.add('object/mobile/shared_tusken_raider.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weaponTemplates.add('object/weapon/ranged/rifle/shared_rifle_tusken.iff')
mobileTemplate.setWeaponTemplates(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedShot')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('tusken_raider', mobileTemplate)