Jump to content


Photo

Weaponset toggle with user_# model

weaponset toggle weapon toggle weapon user_#

Best Answer Ganon, 08 September 2016 - 11:19 PM

Move the module with "USER_3 WEAPONSET_TOGGLE_1" above the one that only has "WEAPONSET_TOGGLE_1", and try that.

If that doesn't work, move it above all the other ones that have "USER_3", but not above "DefaultModelConditionState". Go to the full post


  • Please log in to reply
3 replies to this topic

#1 Symonius

Symonius
  • Members
  • 51 posts
  • Location:The ancient shield
  • Projects:TROW Mod
  •  Just a winged modder

Posted 08 September 2016 - 07:16 PM

Hi all!
I create a unit that swaps model with the heavy armor upgrade instead of a retexture.

The problem is that this unit has the ability to change weapon that works well until i upgrade it.

To change the model i use:

 

    Behavior = ModelConditionUpgrade ModuleTag_TurnHeavy
        TriggeredBy            = Upgrade_ElvenHeavyArmor
        AddConditionFlags    = USER_3
        ;Permanent                = No
    End

 

It works for the sword mode but while i try to change to the archer mode the model doesn't change while the animations and the weaponset work correctly.

 

The code i took for the models is that of the rohirrim with the user_3 added:

 

        ;-----Spear-----
        DefaultModelConditionState
            Model                = EUMirkRider_SKN
        End
        ModelConditionState        = SWAPPING_TO_WEAPONSET_1    ; swapping to bow
            Model                = EUMirkRider_SKN
        End
        
        ModelConditionState = USER_3
            Model           = EUMirkRdrHA_SKN
        End

        ModelConditionState        = USER_3 SWAPPING_TO_WEAPONSET_1    ; swapping to bow
            Model                = EUMirkRdrHA_SKN
        End

        ;-----Bow-----
        ModelConditionState        = SWAPPING_TO_WEAPONSET_2        ; swapping to spear
            Model                = EUMirkMArch_SKN
            WeaponLaunchBone    = SECONDARY FIREAROWTIP
        End
        ModelConditionState        = WEAPONSET_TOGGLE_1
            Model                = EUMirkMArch_SKN
            WeaponLaunchBone    = SECONDARY FIREAROWTIP
        End
        ModelConditionState = USER_3 WEAPONSET_TOGGLE_1
            Model           = EUMrkMArcHA_SKN
            WeaponLaunchBone    = SECONDARY FIREAROWTIP
        End
        ModelConditionState        = USER_3 SWAPPING_TO_WEAPONSET_2        ; swapping to spear
            Model                = EUMrkMArcHA_SKN
            WeaponLaunchBone    = SECONDARY FIREAROWTIP
        End

 

Anyone knows how to make it work or a workaround or if I did something wrong?


Edited by Symonius, 08 September 2016 - 07:21 PM.

"All we have to decide is what to mod with the time that is given us"


#2 Iann Mac

Iann Mac
  • Members
  • 21 posts
  • Location:Scotland

Posted 08 September 2016 - 09:37 PM

Hello Simonius, you can write the info of the Horde (if any)
And one more question: this unit has three forms (mounted, foot, both ...)
Thanks


#3 Ganon

Ganon

    What's this?

  • Project Team
  • 967 posts
  • Location:Ohio, United States
  • Projects:My Link Mod
  •  Code Scientist

Posted 08 September 2016 - 11:19 PM   Best Answer

Move the module with "USER_3 WEAPONSET_TOGGLE_1" above the one that only has "WEAPONSET_TOGGLE_1", and try that.

If that doesn't work, move it above all the other ones that have "USER_3", but not above "DefaultModelConditionState".

Edited by Ganon, 08 September 2016 - 11:23 PM.


#4 Symonius

Symonius
  • Members
  • 51 posts
  • Location:The ancient shield
  • Projects:TROW Mod
  •  Just a winged modder

Posted 09 September 2016 - 07:44 PM

Thanks very much Ganon, I really had to put it just after the default model :)


"All we have to decide is what to mod with the time that is given us"





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users