Code: Select all
<cue name="WR_CreateStations_Destroyed" comment="Get destroyed station and replace it">
<condition>
<check_any>
<any_object_destroyed group="parent.stations"/>
<any_object_destroyed_by_player group="parent.stations"/>
</check_any>
</condition>
<timing>
<time exact="5s"/>
</timing>
<action>
<do_all>
<incoming_message author="DEBUG" text="Station destroyed: {object.name@{event.object}}"/>
<create_station name="this.station" group="parent.stations" typename="{object.type.name@{event.object}}">
<position x="{object.position.x@{event.object}}m" y="{object.position.y@{event.object}}m" z="{object.position.z@{event.object}}m"/>
<sector sector="{object.sector@{event.object}}"/>
<equipment loadout="default"/>
<shield exact="{object.maxshields@this.station}"/>
</create_station>
<reset_cue cue="WR_CreateStations_Destroyed"/>
</do_all>
</action>
</cue>
Kann ich überhaupt auf ein zerstörtes Objekt so zugreifen wie ich es hier gemacht habe (z.B. die Positionsangaben)?
MfG,
ScRaT