Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #14  
Old 03-15-2012, 07:10 PM
Smokeynz Smokeynz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 106
Default

Interesting, although not unexpected considering the detroyed trigger task is to activate on object destroyed, I mean how many times must it be kaput!

Probably a worth while exercise to look at all triggers in a similar way to see what "features" they have.

For example, for the pass through trigger, from what I've seen it can be handled in a number of ways.

if (shortName.Equals(shortName) && active)
{
//do somthing
GamePlay.gpGetTrigger(shortName).Enable = false;
}

if you use only the following ,You can use the trigger in both true and false and it is always live.

if (shortName.Equals(shortName))
{
//do somthing
}


if you use only the following , it appears to only activate on true
if (shortName.Equals(shortName) && active)
{
//do somthing
}

if you use only the following , it appears to only activate on true and disabled after use

if (shortName.Equals(shortName) && active)
{
//do somthing
GamePlay.gpGetTrigger(shortName).Enable = false;
}

So with that in mind, maybe leaving the following out of the destroy trigger it will stay live.
GamePlay.gpGetTrigger(shortName).Enable = false;
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:03 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.