<RefObj> set homesector to <Var/Sector>

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
User avatar
Serial Kicked
Posts: 3493
Joined: Fri, 12. Aug 05, 20:46
x3tc

<RefObj> set homesector to <Var/Sector>

Post by Serial Kicked » Wed, 8. Sep 10, 22:38

<RefObj> -> set homesector to <Var/Sector>


<RefObj> = The object you want to alter
<Var/Sector> = New homesector for the object


Set the homesector of <RefObj>.

The homesector is only relevant on NPC ships controlled by default vanilla job scripts. It usually points to the sector where the ship spawned. As an example it is used by the patrol scripts to prevent ships from going too far away from their homesector.


Example:
  • $ship -> set homesector to $sector
Command Location:

Alex Vanderbilt
Winner X3 Sektorquest
Posts: 2120
Joined: Thu, 4. May 06, 12:07
x3tc

[TiP][49] 286500

Post by Alex Vanderbilt » Fri, 24. Sep 10, 12:14

<RefObj> -> set homesector to <Var/Sector>


<RefObj> = Das Objekt, welches Du ändern willst.
<Var/Sector> = Der neue Heimatsektor für dieses Objekt.

Das Kommando legt einen Heimatsektor für<RefObj> fest.

Der Heimatsektor ist nur für NPC-Schiffe von Interesse, die von Standard-Job-Skripten kontrolliert werden. Der Heimatsektor ist dabei normalerweise der Sektor, in dem das Schiff zum ersten Mal aufgetaucht ist. Beispielsweise wird der Heimatsektor für Patrouillenskripte verwendet, um zu vermeiden, dass sich die Schiffe zu weit von ihrem Ausgangspunkt, dem Heimatsektor, entfernen.

Beispiel:

$ship -> set homesector to $sector

Hier wird der Heimatsektor von $ship -> auf den in der Variable $sector gespeicherten Sektor gesetzt.


Zu finden unter:

User avatar
Capux
Posts: 2141
Joined: Sat, 31. Oct 09, 22:17
x4

[34]286500

Post by Capux » Tue, 28. Sep 10, 20:51

<RefObj> -> set homesector to <Var/Sector>


<RefObj> = L'oggetto che vuoi modificare
<Var/Sector> = Nuovo settore base per l'oggetto


Imposta il settore base di <RefObj>.

Il settore base è rilevante solo per le navi NPC controllate dagli script di default della versione vanilla. Solitamente punta al settore dove la nave è stata generata (o spawnata). Per esempio è usato dagli script per le pattuglie per impedire alle navi di andare troppo lontano dal settore dove sono state create.


Esempio
$ship -> set homesector to $sector


Posizione dell'istruzione nella lista:

Locked

Return to “MSCI Reference”