hey pplz, help would be greatly appreciated =)
Im attempting to use jim raynors flashlight behaviour as a toggle on/off ability.
Ive so far haved:
cloned the behavior
created new buttons for on/off
attached the behaviour and buttons to the abillty
set the commands for on/off
applied the ability to a firebat
added it to unit ability and changed its command card
The result is half sucessful, the turning ON the flashlight is fine, just that it is permanantly on, since the OFF button does not appear once it has been switched on. Has anybody got any ideas/suggestions on what I could try to make the OFF button appear?
@FatGreyCat: Go
EDIT: I realized my button was controlled a bit differently.
Have you tried using an If/Then statement on the button? I had a dummy button for opening and closing a store, and an if/then trigger worked. I have it set so that if one section of the store dialog is visible, then it closes everything, else it opens everything. So..
If flashlight is visible = true
then
turn off flashlight (or remove the flashlight behavior/abilityr)
else
turn on flashlight (or apply behavior/ability)
Obviously the scripting would be a little more complicated, but that is the general idea.
hey pplz, help would be greatly appreciated =) Im attempting to use jim raynors flashlight behaviour as a toggle on/off ability.
Ive so far haved:
The result is half sucessful, the turning ON the flashlight is fine, just that it is permanantly on, since the OFF button does not appear once it has been switched on. Has anybody got any ideas/suggestions on what I could try to make the OFF button appear?
@FatGreyCat: Go EDIT: I realized my button was controlled a bit differently.
Have you tried using an If/Then statement on the button? I had a dummy button for opening and closing a store, and an if/then trigger worked. I have it set so that if one section of the store dialog is visible, then it closes everything, else it opens everything. So..
If flashlight is visible = true
then
turn off flashlight (or remove the flashlight behavior/abilityr)
else
turn on flashlight (or apply behavior/ability)
Obviously the scripting would be a little more complicated, but that is the general idea.