Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 41 and Version 42 of content/LevelHowTo


Ignore:
Timestamp:
Dec 22, 2013, 1:12:58 AM (10 years ago)
Author:
jo
Comment:

trigger stuff … to be continued

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v41 v42  
    11= How to create Orxonox Levels =
    22[[TracNav(TracNav/TOC_CC_Tut)]]
     3
     4It it recommended to first have a look at some of the existing levels. In the single player menu at the tab all to the right you find a complete list of all orxonox levels.
    35
    46== Create the basic file ==
     
    111113
    112114== Spawnpoints ==
    113 A Spawnpoint is the entrance point for controllable entities (spaceships). Without a spawnpoint no level can work!
     115A Spawnpoint is the '''entrance point''' for controllable entities (spaceships). Without a spawnpoint no level can work!
    114116{{{
    115117#!xml
     
    263265</SimpleNotification>
    264266}}}
    265 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 name attribute 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.
     267'''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.
     268The 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.
     269Another 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.
    266270
    267271== Quests ==