Hi there, i wanna make my trigger wait the weapon period of my unit.
Let's say i have a marine, his gun fires bullets for 1.3 seconds (Weapon - Stats - Period: 1.3). I wanna make my trigger wait, depending on that value.
I'm guessing it's gonna be the "Value from data table (Real)", but i dunno how to specify the paths.
AAAaaaand, i would like this to work for different units using variables.
Hi there, i wanna make my trigger wait the weapon period of my unit. Let's say i have a marine, his gun fires bullets for 1.3 seconds (Weapon - Stats - Period: 1.3). I wanna make my trigger wait, depending on that value.
I'm guessing it's gonna be the "Value from data table (Real)", but i dunno how to specify the paths. AAAaaaand, i would like this to work for different units using variables.
NOTE: Units only have ONE weapon each.!!
Imaginary Trigger
Wait - [Period] of [Triggering Unit]'s Weapon
Use Catalogs.
General - Wait (Real((Value of Weapons (String(((Triggering unit) weapon 1))) "Period" for player (Owner of (Triggering unit))))) Game Time seconds
Cant tell if the first weapon has index 1 or 0 though, you need to try this out.
Thanks alot!