Changes between Version 55 and Version 56 of content/LevelHowTo
- Timestamp:
- Sep 7, 2015, 12:30:38 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
content/LevelHowTo
v55 v56 142 142 == [http://www.orxonox.net/doxygen/classorxonox_1_1_pickup_spawner.html Pickups] == 143 143 Pickups give a player a temporary bonus when collecting it. Bonuses are invisibility, health, boost, shield, a drone, ... 144 1. Include the pickups .144 1. Include the pickupsRepresentationTemplates. This include should be somewhere between the LevelInfo and the opening Level tag. 145 145 {{{ 146 146 #!xml 147 147 <?lua 148 148 include("templates/pickupRepresentationTemplates.oxt") 149 ?> 150 }}} 151 2. Include the pickups. This include should be after the opening Scene tag. 152 {{{ 153 #!xml 154 <?lua 149 155 include("includes/pickups.oxi") 150 156 ?> 151 157 }}} 152 2. Add a PickupSpawner. An invisible device that puts pickups in the level. 153 {{{ 154 #!xml 155 <PickupSpawner position="-160,65,10" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 156 <pickup> 157 <InvisiblePickup template=mediuminvisiblepickup /> 158 </pickup> 159 </PickupSpawner> 158 3. Add a PickupSpawner. An invisible device that puts pickups in the level. 159 {{{ 160 #!xml 161 <PickupSpawner pickup=smallshieldpickup position="-25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 160 162 }}} 161 163 '''Pickupspawner - attributes''':