64 | | Look at the [http://www.orxonox.net/browser/code/branches/presentationFS14/data/levels/templates/HeavyCruiser.oxt#L3 HeavyCruiser.oxt] template to see an implementation of this! |
| 64 | Here's a few examples of !PartDestructionEvents. |
| 65 | |
| 66 | [[br]] |
| 67 | |
| 68 | {{{ |
| 69 | <PartDestructionEvent targetType="ship" targetParam="boostpowerrate" operation="-" value="0.5" message="One of your ship's generators was destroyed!"/> |
| 70 | }}} |
| 71 | ''Description:'' Reduces the ship's boost-recharging-rate by 0.5 and shows a message in chat. |
| 72 | |
| 73 | [[br]] |
| 74 | |
| 75 | {{{ |
| 76 | <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="boostfactor" operation="set" value="1"/> |
| 77 | }}} |
| 78 | ''Description:'' Sets the booststrength of the engine named "bodyengine" to 1 (= no boost). |
| 79 | |
| 80 | [[br]] |
| 81 | |
| 82 | {{{ |
| 83 | <PartDestructionEvent targetType="part" targetName="sidearmLfront" operation="destroy"/> |
| 84 | }}} |
| 85 | ''Description:'' Destroys the ShipPart named "sidearmLfront". |
| 86 | |
| 87 | [[br]] |
| 88 | |
| 89 | |
| 90 | Look at the [http://www.orxonox.net/browser/code/branches/presentationFS14/data/levels/templates/HeavyCruiser.oxt#L3 HeavyCruiser.oxt] template to see a working implementation of this! |