JASS:
call TriggerRemoveAction( gg_trg_Damage_Functions, GetTriggerUnit(), EVENT_UNIT_DAMAGED)
I'm using gui triggers but I have a custom script action with this. What I'm trying to do is have an event removed of a unit getting damaged (which was an event created from another trigger). This custom script is in the same trigger in which the event is to be removed (not sure if that has any relevance though). I'm pretty sure the problem is mostly with how I tried to do this (or perhaps it is the wrong kind of function) so I think no more detail will be needed for someone to solve this problem, but more could be provided if necessary.