If you're in the table-looking view mode (which you probably are if you can't edit the value by typing), double click on the field where the number should go.
You should also check out one of the general tutorials for newcomers to the (data) editor. Most of them are quick and easy to read. A list of them is here.
Are you using the data editor or the trigger editor? You can change it directly in the data editor, which is much easier than using triggers, unless you're doing something where the weapon speed changes during gameplay.
Hm.. The UnitWeaponPeriod is just the Weapon Cooldown function I was calling before..
That returns a static value for Weapon Speed rather than the actual "Time till Unit can Attack" I'm looking for..
To clarify:
eg. Unit A has weapon speed of 1
Unit A attacks at gametime 0.0
I call function at gametime 0.2, it returns 0.8 to me
I'm confused because you posted this in the data editor section and you're clearly not using the data editor. If I understand correctly, you want how much time is remaining until a unit can attack. I don't know of any function that does this. You should ask the same question in the Galaxy Scripting section.
Hey guys. I've been having trouble finding a Unit property which can tell me:
I have tried looking at Weapon Cooldown, Unit Properties, and Unit Behaviours, but none of those give me what I want.
@Kalafina: Go
Weapon - Period
@shardfenix: Go
thanks for the fast reply!
edit: I rephrase my question. I found the function UnitWeaponPeriod, but what is the "name" of the function to search for in the triggers editor.
@Kalafina: Go
If you're in the table-looking view mode (which you probably are if you can't edit the value by typing), double click on the field where the number should go.
You should also check out one of the general tutorials for newcomers to the (data) editor. Most of them are quick and easy to read. A list of them is here.
Are you using the data editor or the trigger editor? You can change it directly in the data editor, which is much easier than using triggers, unless you're doing something where the weapon speed changes during gameplay.
@shardfenix: Go
Hm.. The UnitWeaponPeriod is just the Weapon Cooldown function I was calling before.. That returns a static value for Weapon Speed rather than the actual "Time till Unit can Attack" I'm looking for..
To clarify: eg. Unit A has weapon speed of 1
Unit A attacks at gametime 0.0
I call function at gametime 0.2, it returns 0.8 to me
@Kalafina: Go
I'm confused because you posted this in the data editor section and you're clearly not using the data editor. If I understand correctly, you want how much time is remaining until a unit can attack. I don't know of any function that does this. You should ask the same question in the Galaxy Scripting section.
@shardfenix: Go
Sorry. You are right, I realize now I posted in the wrong section due to my haste..