<RetVar> = <RetObj> get current max speed

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
EmperorJon
Posts: 7178
Joined: Mon, 29. Dec 08, 21:58
x3tc

<RetVar> = <RetObj> get current max speed

Post by EmperorJon » Fri, 10. Sep 10, 11:11

<RetVar> = <RetObj> get current max speed

<RetVar> = The variable where the requested information is put.
<RefObj> = The object to check for the information.

Checks the current max possible speed of an movable object. (A ship)


Example:

$PlaySpeed = [PLAYERSHIP] get current max speed
[PLAYERSHIP] set ship speed to $PlaySpeed

Would set the playership’s speed to it’s maximum.


Command Location:

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

[TiP][49] 286608

Post by Alex Vanderbilt » Wed, 29. Sep 10, 17:52

<RetVar> = <RetObj> get current max speed

<RetVar> = Variable, wo die angeforderten Informationen ausgegeben werden sollen.
<RefObj> = Das zu überprüfende Objekt, um Informationen zu erhalten.

Es wird die gegenwärtig maximal mögliche Geschwindigkeit eines beweglichen Objektes, normalerweise handelt es sich dabei um ein Schiff, überprüft.

Beispiel:

$PlaySpeed = [PLAYERSHIP] get current max speed
[PLAYERSHIP] set ship speed to $PlaySpeed

Hier würde die Geschwindigkeit von [PLAYERSHIP] auf den maximal möglichen Wert gesetzt.


Zu finden unter:

Locked

Return to “MSCI Reference”