Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 44 and Version 45 of content/LevelHowTo


Ignore:
Timestamp:
Dec 22, 2013, 11:56:01 AM (11 years ago)
Author:
jo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v44 v45  
    324324}}}
    325325
    326 === ===
    327 
     326=== Advanced Triggers ===
     327{{{
     328#!xml
     329
     330}}}
    328331=== What events can do ===
    329  * Making objects visible:
    330 {{{
    331 #!xml
    332 
    333     <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 1">
    334         <events>
    335           <visibility>
    336             <EventListener event="flying4" />
    337           </visibility>
    338         </events>
    339         <attached>
    340             <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
    341         </attached>
    342         <collisionShapes>
    343            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
    344         </collisionShapes>
    345         <controller>
    346             <WaypointController team=1>
    347             </WaypointController>
    348         </controller>
    349     </Pawn>
     332 * Making objects (in)visible:
     333{{{
     334#!xml
     335<DistanceTrigger name="switchBillboards" position="-900,640,600" target="Pawn" distance=70 stayActive="true" delay=1/>
     336<!-- switchBillboards makes this billboard INVISIBLE -->
     337<BlinkingBillboard position="-900,640,600" frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
     338          <events>
     339            <visibility>
     340              <EventTrigger invert=true>
     341                <events>
     342                  <trigger>
     343                    <EventListener event=switchBillboards />
     344                  </trigger>
     345                </events>
     346              </EventTrigger>
     347            </visibility>
     348          </events>
     349</BlinkingBillboard>
     350<!-- switchBillboards makes this billboard VISIBLE -->
     351<Billboard position="-900,640,600" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
     352          <events>
     353            <visibility>
     354              <EventTrigger>
     355                <events>
     356                  <trigger>
     357                    <EventListener event=switchBillboards />
     358                  </trigger>
     359                </events>
     360              </EventTrigger>
     361            </visibility>
     362          </events>
     363</Billboard>
    350364}}}
    351365 * (De)activating objects: