Ich möchte eine distance apfragen zwischen dem Player Schiff und einem Feind Schiff! Ich kriege das ihrgend wie nicht hin.
Das ganse soll in ein condition .
Hir mal der Code:
Code: Select all
<cues>
<cue name="escort_fluechtling">
<condition>
<check_all>
<object_sector object="create_fluechtling.Fluechtling" exact="0">
<sector x="0" y="2"/>
</object_sector>
<check_distance value="create_fluechtling.Fluechtling" min="8km"/>
</check_all>
</condition>
<action>
<do_all exact="2">
<create_ship group="this.FL_Escorte" class="m4" capturable="0" highlight="0" racelogic="1" race="pirate" typename="{random.type@SS_SH_M4_P|SS_SH_M4_P_1|SS_SH_M4_P_2|SS_SH_M4_P_3}">
<position object="Fluechtling" min="1km"/>
<equipment loadout="maximum">
</equipment>
<pilot race="pirate"/>
</create_ship>
<set_group_command group="this.FL_Escorte" command="attack" commandobject="{player.ship}"/>
<complete_cue cue="escort_fluechtling"/>
</do_all>
</action>
<cues>
Jens Ka