Modding Help, Basic |
Modding Help, Basic |
25 Apr 2018, 15:24
Post
#1
|
|
Group: Members Posts: 102 Joined: 13 December 2017 From: Caracas, Venezuela Member No.: 16469 |
Hi guys!
How do I make a unit not shoot all its weapons at the same time? I am modifying a helicopter and it has Missiles and RocketPod Upgrade. When I send him to attack, he fires his rockets with the missiles at the same time ... What should I do? |
|
|
25 Apr 2018, 16:10
Post
#2
|
|
Group: Members Posts: 48 Joined: 14 July 2017 From: Roma Member No.: 15601 |
depend on the result you want
anyway some option: 1) set the weapon set like this : WeaponSet Conditions = NONE Weapon = PRIMARY Minigun Weapon = SECONDARY Missiles PreferredAgainst = SECONDARY STRUCTURE , force the unit to use missile only vs bulding , but use the minigin during the reload time End 2) A manual Weapon Switc like the scud launcer\nuke cannon need more unit management but force unit to use only 1 weapon 3) Like The America Comance roket pod , like metod 2 need more unit management -------------------- |
|
|
25 Apr 2018, 16:43
Post
#3
|
|
Group: Members Posts: 102 Joined: 13 December 2017 From: Caracas, Venezuela Member No.: 16469 |
depend on the result you want anyway some option: 1) set the weapon set like this : WeaponSet Conditions = NONE Weapon = PRIMARY Minigun Weapon = SECONDARY Missiles PreferredAgainst = SECONDARY STRUCTURE , force the unit to use missile only vs bulding , but use the minigin during the reload time End 2) A manual Weapon Switc like the scud launcer\nuke cannon need more unit management but force unit to use only 1 weapon 3) Like The America Comance roket pod , like metod 2 need more unit management I have it configured in the following way: WeaponSet Conditions = None Weapon = PRIMARY ApacheHellfireMissileWeapon PreferredAgainst = PRIMARY VEHICLE End WeaponSet Conditions = PLAYER_UPGRADE Weapon = PRIMARY ApacheHellfireMissileWeaponUP PreferredAgainst = PRIMARY VEHICLE Weapon = TERTIARY CobraRocketPodWeapon AutoChooseSources = TERTIARY NONE End |
|
|
27 Apr 2018, 16:49
Post
#4
|
|
Group: Members Posts: 48 Joined: 14 July 2017 From: Roma Member No.: 15601 |
WeaponSet
Conditions = None Weapon = PRIMARY ApacheHellfireMissileWeapon PreferredAgainst = PRIMARY VEHICLE End in this one don't need PreferredAgainst since is only 1 weapon. the PLAYER_UPGRADE one is fine , if you want ONLY MANUAL fire like the comance. now you only need to add the button for use the TERTIARY weapon like this one (change Upgrade if you use a custom one) , and the commandset CODE CommandButton Command_AmericaVehicleComancheFireRocketPods
Command = FIRE_WEAPON WeaponSlot = TERTIARY Options = OK_FOR_MULTI_SELECT NEED_UPGRADE NEED_TARGET_POS ; fires at pos, not obj Upgrade = Upgrade_ComancheRocketPods TextLabel = CONTROLBAR:FireRocketPods ButtonImage = SSRocketAttack ButtonBorderType = ACTION; Identifier for the User as to what kind of button this is DescriptLabel = CONTROLBAR:ToolTipUSAFireRocketPods RadiusCursorType = ATTACK_SCATTER_AREA InvalidCursorName = GenericInvalid UnitSpecificSound = ComancheVoiceModeRocketPods End -------------------- |
|
|
Lo-Fi Version | Time is now: 25 April 2024 - 0:45 |