Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10812 for code


Ignore:
Timestamp:
Nov 16, 2015, 4:30:49 PM (9 years ago)
Author:
paulsc
Message:

Tried new tactic with mission failing, but still does not work…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/data/levels/Campaign1.oxw

    r10809 r10812  
    364364    </Script>
    365365
    366     <!-- FIXME: This trigger needs fixing, as endMission can only be called by a Pawn Distance Trigger. Herpaderp.
    367     Also, the fix proposed in MissionOne does not work anymore... -->
    368    <EventMultiTrigger name="missionFailed" target="Pawn" stayActive="true" delay=1.5>
    369        <events>
    370            <trigger>
    371                <EventListener event="transporter" />
    372            </trigger>
    373        </events>
    374    </EventMultiTrigger>
     366    <!-- See the MissionFailed DistanceTrigger attached to the shuttle here! !-->
     367
     368    <DistanceTrigger name="missionNotFailed" position="0,0,0" distance=100000 target="SpaceShip" beaconMode="identify" targetname="transporter" />
     369
     370    <!--FIXME: How does this work but the below does not?? -->
     371
     372    <SimpleNotification broadcast="true" message="TEST">
     373        <events>
     374            <trigger>
     375                <Trigger invert=true>
     376                    <EventTrigger>
     377                        <events>
     378                            <trigger>
     379                                <EventListener event="missionNotFailed" />
     380                            </trigger>
     381                        </events>
     382                    </EventTrigger>
     383                </Trigger>
     384            </trigger>
     385        </events>
     386    </SimpleNotification>
    375387
    376388    <Script code="Mission endMission fail" onLoad="false">
    377389        <events>
    378390            <trigger>
    379                 <EventListener event="missionFailed" />
     391                <Trigger invert=true>
     392                    <EventTrigger>
     393                        <events>
     394                            <trigger>
     395                                <EventListener event="missionNotFailed" />
     396                            </trigger>
     397                        </events>
     398                    </EventTrigger>
     399                </Trigger>
    380400            </trigger>
    381401        </events>
     
    11091129        <attached>
    11101130            <DistanceTriggerBeacon name="NPC" />
     1131            <DistanceTriggerBeacon name="transporter" />
    11111132            <DistanceTrigger active=false name="reachedShuttle" position="0,0,0" distance=400 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true>
    11121133                <events>
Note: See TracChangeset for help on using the changeset viewer.