Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 68 and Version 69 of content/LevelHowTo


Ignore:
Timestamp:
Nov 2, 2015, 10:22:18 PM (8 years ago)
Author:
fvultier
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v68 v69  
    578578{{{
    579579#!xml
    580 <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=6/>
     580<Backlight position="0,0,0" visible=true frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05"/>
     581<DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=2/>
    581582
    582583<SimpleNotification message="Let's fly to the blinking light." broadcast="true">
     
    588589</SimpleNotification>
    589590}}}
    590 '''DistanceTriggers''' are activated, when the target (e.g. a pawn, a spaceship, ...) is close enough to the distance trigger (defined via "'''distance'''"). The '''stayActive''' attribute keeps the switch activated once triggered - the event can only be created once. The name '''flying1''' is needed in order to catch the event, when the trigger was activated. The '''SimpleNotification''' is sent to the player when the trigger is activated. Note that the trigger is activated with a delay of 6 seconds.
     591'''DistanceTriggers''' are activated, when the target (e.g. a pawn, a spaceship, ...) is close enough to the distance trigger (defined via "'''distance'''"). The '''stayActive''' attribute keeps the switch activated once triggered - the event can only be created once. The name '''flying1''' is needed in order to catch the event, when the trigger was activated. The '''SimpleNotification''' is sent to the player when the trigger is activated. Note that the trigger is activated with a delay of 2 seconds.
    591592The problem of distance triggers is that you have to rely on that the player is actually activating it as intended. Try to attract the player by using bliking billboards, pickups to reward the player, ... and make the radius large enough such that the player can hardly miss it.
    592593Another problem might be that the distance trigger is triggered by another Pawn/Spaceship/... (whatever is specified as target). To exclude certain objects to activate the trigger or to only allow a specific object to activate the trigger, the '''DistanceTriggerBeacon''' was created: