OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 31 May 2005, 08:21:58

Title: if one thing the other not
Post by: 456820 on 31 May 2005, 08:21:58
im wondering how i can delte a trigger half way a game ive tried
deletevechile trigger1
but didnt seem to work

ive got a trigger with a condition to detect when 3/4 of 2 squads are dead then it activates but when a different rigger activates telling you to retreat and you then run into a patrol and if they take out a few men then activates the first trigger asking for reinsforcements but its to late so after the second trigger is active i want to delee the first one how would i do that ?
Title: Re:if one thing the other not
Post by: bedges on 31 May 2005, 08:29:01
if the first trigger is named 'trigger1', then

Code: [Select]
deletevehicle trigger1
as part of the second trigger's 'on activation' field will work. it all comes down to what's in the condition field, but i'm afraid i can't really make head nor tail of the question to be able to offer more than that :-\
Title: Re:if one thing the other not
Post by: 456820 on 31 May 2005, 08:30:18
ill try that aain but last time i tried it didnt work maybe i did something wrong any way thanks ill try that
Title: Re:if one thing the other not
Post by: 456820 on 31 May 2005, 08:49:50
thanks Beges it works fine mustof been something wrong last time i tried anyway cheers