You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the triggers @Targon_Cancel and @ItemTargon_Cancel ONLY fire if the TARGET is called from the item. If called from the SRC (on a DCLICK trigger, for example), these triggers never fire if the SRC presses ESC.
Proposal is to modify @Targon_Cancel OR create a new trigger (@Target_Cancel or something) that is actually fired any time the client has a target cursor present and hits ESC. This will give the the ability to run certain lines of code that need only be processed on a target cancellation. In addition, this trigger needs to be fired even if the client is placing an item from the ADD command, or any other function that opens the target cursor.
An example of when this should work, but does not currently:
[events e_target_example]
on=@target_cancel // new trigger
sysmessage You canceled your targeting cursor.
events -e_target_example // don't need this anymore
return 1 // suppress default message
The text was updated successfully, but these errors were encountered:
Currently, the triggers @Targon_Cancel and @ItemTargon_Cancel ONLY fire if the TARGET is called from the item. If called from the SRC (on a DCLICK trigger, for example), these triggers never fire if the SRC presses ESC.
Proposal is to modify @Targon_Cancel OR create a new trigger (@Target_Cancel or something) that is actually fired any time the client has a target cursor present and hits ESC. This will give the the ability to run certain lines of code that need only be processed on a target cancellation. In addition, this trigger needs to be fired even if the client is placing an item from the ADD command, or any other function that opens the target cursor.
An example of when this should work, but does not currently:
[function f_blah]
events +e_target_example
add m_some_big_pretty_house
[events e_target_example]
on=@target_cancel // new trigger
sysmessage You canceled your targeting cursor.
events -e_target_example // don't need this anymore
return 1 // suppress default message
The text was updated successfully, but these errors were encountered: