<RefObj> ignore collisions: <Var/Number>

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
corbinbird
Posts: 49
Joined: Tue, 2. May 06, 18:58
x3tc

<RefObj> ignore collisions: <Var/Number>

Post by corbinbird » Sun, 9. Jan 11, 17:08

<RefObj> -> ignore collisions: <Var/Number>


<RefObj> = This is a specific object (i.e. a station, a ship, etc). A 'variable' containing a specific object may be used as well. The constant [PLAYERSHIP] works as well.
<Var/Number> = This is the [TRUE] / [FALSE] constant or its numeric equivalent.


This command controls the game engines' obstacle avoidance routines as well as the ability to ram/collide.


Example:

* test 'ignore collisions' command

[PLAYERSHIP]-> ignore collisions:[TRUE]

return null

Result : The [PLAYERSHIP] no longer goes around stations or humps asteroids. It goes through them. No one is able to ram the [PLAYERSHIP] either. They fly through the [PLAYERSHIP].


Command Location:

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24965
Joined: Sun, 2. Apr 06, 16:38
x4

[TiP][49] 294845

Post by X2-Illuminatus » Thu, 20. Jan 11, 19:48

<RefObj> -> ignore collisions: <Var/Number>


<RefObj> = Dies ist ein spezifisches Objekt (z.B. eine Station, ein Schiff etc.). Ebenfalls kann eine Variable, die ein spezifisches Objekt enhtält, genutzt werden. Die Konstante [PLAYERSHIP] funktioniert auch.
<Var/Number> = Dies ist die [TRUE] (wahr) / [FALSE] (falsch) Konstante oder ihr numerisches Äquivalent.


Dieser Befehl kontrolliert die spieleigene Routine zur Verhinderung von Kollisionen sowie die Fähigkeit zum Rammen / Kollidieren.


Beispiel:

* Teste "ignore collisions"-Befehl

[PLAYERSHIP]-> ignore collisions:[TRUE]

return null

Ergebnis: Das [PLAYERSHIP] (Spielerschiff) fliegt nicht mehr um Stationen herum oder knallt gegen Asteroiden. Es fliegt durch sie hindurch. Niemand ist in der Lage das Spielerschiff zu rammen. Jeder fliegt durch es hindurch.


Zu finden unter:

Locked

Return to “MSCI Reference”