Hello there. I am currently working on my first real mod thing, namely a MultiWeaponBase, which is capable of having multiple weapons to show (eg. Flak cannon for 5 secs, then Link Gun for 10 secs, and finally Shock Rifle for 5 secs, and then repeat).
I am struggling with defining states for every weapon, because some states will not be called (if there are only two diff. weapons selected, instead of 3, 4 or more). If this is solved, then every state can just modify the WeaponType variable from xPickupBase class, and hence hopefully display a different weapon. After doing that, they will call Sleep with the specified time and move on to the next state.
Should I just create some state check which sends it to the next state if no weapon and/or time is specified?
And, will just changing the variable WeaponType result in the desired effect, or is there some other action needed in xPickupBase as well?
Google and UnrealWiki do not really give results for this kind of problem, maybe because it is very trivial (and I am just a newb)
Thanks in advance anyway,
Lord_Farin
I am struggling with defining states for every weapon, because some states will not be called (if there are only two diff. weapons selected, instead of 3, 4 or more). If this is solved, then every state can just modify the WeaponType variable from xPickupBase class, and hence hopefully display a different weapon. After doing that, they will call Sleep with the specified time and move on to the next state.
Should I just create some state check which sends it to the next state if no weapon and/or time is specified?
And, will just changing the variable WeaponType result in the desired effect, or is there some other action needed in xPickupBase as well?
Google and UnrealWiki do not really give results for this kind of problem, maybe because it is very trivial (and I am just a newb)
Thanks in advance anyway,
Lord_Farin
Last edited: