![]() |
|
|
|
#1
|
|||
|
|||
|
Hi Kodiak, in this part of script:
PHP Code:
PHP Code:
have to be inside "if (shortName.Equals("TPassThruTriggerName"))" ? does it mean that action will be done only for TPassThruTrigger? Also deactivating trigger means to disable theme for good or after they invoked? PHP Code:
__________________
![]() Asus P6T V2 Deluxe, I7 930, 3x2 GB RAM XMS3 Corsair1333 Mhz, Nvidia Leadtek GTX 470, Acer 1260p screen projector, Track IR 4 OS ver5, Saitek Pro Flight Rudder, Saitek X52, Win 7 x64 ultimate |
|
#2
|
|||
|
|||
|
the action is only activated if the trigger is triggered, you can also place it outside if you like.
Quote:
In my case above the passthru tigger must be activated once. But you can disable a trigger at any time. For example you have two condition one win and one fail. Maybe the win condition is to destroy groundtargets and you use a TGroundDestroy trigger and the fail condition you must make it before the time is over. To avoid the activation of the second trigger you can disable it. Example: Code:
public override void OnTrigger(int missionNumber, string shortName, bool active)
{
base.OnTrigger(missionNumber, shortName, active);
if (shortName.Equals("TimerTriggerName"))
{
GamePlay.gpHUDLogCenter("You failed Time is over");
GamePlay.gpGetTrigger("GroundDestroyed").Enable = false;
}
if (shortName.Equals("GroundDestroyed"))
{
GamePlay.gpHUDLogCenter("You win you destroyed the Groundtargets");
GamePlay.gpGetTrigger("TimerTriggerName").Enable = false;
}
}
Last edited by FG28_Kodiak; 11-07-2012 at 02:00 PM. |
|
#3
|
||||
|
||||
|
Gruber, the script that I emailed you had pass through events triggering successfully. Did this not work?
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|