| | 103 | |
| | 104 | == [http://www.orxonox.net/doxygen/classorxonox_1_1_pickup_spawner.html Pickups] == |
| | 105 | Pickups give a player a tomporary bonus, if he is able to flight through the pickup. Bonuses are invisibility, health, boost, shield, a drone, ... |
| | 106 | 1. Include the pickups. |
| | 107 | {{{ |
| | 108 | #!xml |
| | 109 | <?lua |
| | 110 | include("includes/pickups.oxi") |
| | 111 | ?> |
| | 112 | }}} |
| | 113 | 2. Add a PickupSpawner. An invisible device that puts pickups in the level. |
| | 114 | {{{ |
| | 115 | #!xml |
| | 116 | <PickupSpawner position="-160,65,10" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> |
| | 117 | <pickup> |
| | 118 | <InvisiblePickup template=mediuminvisiblepickup /> |
| | 119 | </pickup> |
| | 120 | </PickupSpawner> |
| | 121 | }}} |
| | 122 | * triggerDistance: Distance to collect the pickup. The larger the triggerDistance, the easier it is to get the pickup. |
| | 123 | * respawnTime: After respawntime seconds a new pickup will appear, if the pickup had been collected. |
| | 124 | * maxSpawnedItems: After maxSpawnedItems no further pickup will appear. |