- Joined
- Dec 31, 2014
- Messages
- 68
Ok.. this is a really really REALLY dumb & simple question, I'm running over my map to try and attack the remaining memory leaking in my map.
This might have already been answered in another post but upon searching I couldn't find anything exact, so sorry if it already has.
I have some triggers that I have made custom scripts for themselves or other triggers to be destroyed after they are triggered, usually for Single Fire Triggers).
I have looked online, seeing some posters that include spaces, some do not but I want to be 100% sure that what I have done with my triggers is correct or not. (or if this even matters in the slightest) As I don't know for sure when each trigger is destroyed I can't test.
So For Example here I will type
where a space would be just so that it is clear,
the custom code GetTriggeringTrigger, is it;
Custom script: call DestroyTrigger
ogre_rage:GetTriggeringTrigger()
)
or is it
Custom script: call DestroyTrigger(GetTriggeringTrigger())
the custom code gg_trg_TRIGGER_NAME, is it;
Custom script: Call DestroyTrigger
ogre_rage:gg_trg_TRIGGER_NAME
)
or is it
Custom script: call DestroyTrigger(gg_trg_TRIGGER_NAME)
Or.. if there is something else iv done wrong what should it be?
Thanks
This might have already been answered in another post but upon searching I couldn't find anything exact, so sorry if it already has.
I have some triggers that I have made custom scripts for themselves or other triggers to be destroyed after they are triggered, usually for Single Fire Triggers).
-
Custom script: call DestroyTrigger(GetTriggeringTrigger())
-
Custom script: call DestroyTrigger(gg_trg_TRIGGER_NAME)
I have looked online, seeing some posters that include spaces, some do not but I want to be 100% sure that what I have done with my triggers is correct or not. (or if this even matters in the slightest) As I don't know for sure when each trigger is destroyed I can't test.
So For Example here I will type

the custom code GetTriggeringTrigger, is it;
Custom script: call DestroyTrigger

or is it
Custom script: call DestroyTrigger(GetTriggeringTrigger())
the custom code gg_trg_TRIGGER_NAME, is it;
Custom script: Call DestroyTrigger

or is it
Custom script: call DestroyTrigger(gg_trg_TRIGGER_NAME)
Or.. if there is something else iv done wrong what should it be?
Thanks