TFormPoint falsche Koordinate
Übersicht

![]() |
BastianABetreff: TFormPoint falsche Koordinate |
![]() Antworten mit Zitat ![]() |
---|---|---|
Hallo, leider wieder ein kleines Problem.
In der Tram gibt es eine Tür in der sollen Personen einsteigen. Ich hab das ganze schon mit If Schleifen das funzt auch, die Person lade ich an eine Position und den Türbereich wollte ich umrechnen lassen mit TFormPoint, da sich die Tram ja bewegt und ich bei AliginToVector keine koordinate von einem Parent Objekt hernehmen kann. Hier mein Code: Zitat: If Fahrt_15_17# = True And FahrStrecke# > 580 And FahrStrecke# < 592 Then ShowEntity IBIS_Verfruehung ShowEntity IBIS_Verspaetung If Int Min# = 14 Then EntityTexture IBIS_Verfruehung, Zahl3 EndIf If Int Min# = 15 Then EntityTexture IBIS_Verfruehung, Zahl2 EndIf If Int Min# = 16 Then EntityTexture IBIS_Verfruehung, Zahl1 EndIf If Int Min# = 17 Then EntityTexture IBIS_Verfruehung, Zahl0 EntityTexture IBIS_Verspaetung, Zahl0 EndIf If Int Min# = 18 Then EntityTexture IBIS_Verspaetung, Zahl1 EndIf If Int Min# = 19 Then EntityTexture IBIS_Verspaetung, Zahl2 EndIf If Int Min# = 20 Then EntityTexture IBIS_Verspaetung, Zahl3 EndIf If Int TOpen_Grad# = 90 Then TFormPoint 0, 0, 1.5, tram, 0 AlignToVector Fahrgast_1_st, TFormedX# (), 0, TFormedZ# (), 3, 0.2 MoveEntity Fahrgast_1_st,0,0,-0.017 EndIf EndIf Ja, Ich weiß, dass der restliche Code noch fehlt, aber die Richtung stimmt ja nicht, die ist ganz falsch. Was mche ich falsch? |
||
![]() |
ToeB |
![]() Antworten mit Zitat ![]() |
---|---|---|
1. Benutze Codeboxen nicht zitatboxen
2. Rücke deinen code bitte ein (zumindest das was wir von dir bekommen) 3. (Es gibt keine IF-Schleifen) 4. Versteh ich denn sinn nicht ... mfg ToeB |
||
Religiöse Kriege sind Streitigkeiten erwachsener Männer darum, wer den besten imaginären Freund hat.
Race-Project - Das Rennspiel der etwas anderen Art SimpleUDP3.0 - Neuste Version der Netzwerk-Bibliothek Vielen Dank an dieser Stelle nochmal an Pummelie, welcher mir einen Teil seines VServers für das Betreiben meines Masterservers zur verfügung stellt! |
![]() |
Noobody |
![]() Antworten mit Zitat ![]() |
---|---|---|
Das TFormPoint ist komplett richtig angewendet (sieht man eigentlich selten ![]() TFormPoint 0, 0, 1.5, tram, 0 |
||
Man is the best computer we can put aboard a spacecraft ... and the only one that can be mass produced with unskilled labor. -- Wernher von Braun |
![]() |
BastianA |
![]() Antworten mit Zitat ![]() |
---|---|---|
Ok, ich gebe zu mein Problem war nicht leicht zu verstehen, mein ganzer Code funzt, hab anstatt Hide den Alphawert benutzt geht jetzt ![]() |
||
PacMani |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Hier noch ein Tipp von mir...
Code: [AUSKLAPPEN] If Int Min# = 14 Then
EntityTexture IBIS_Verfruehung, Zahl3 EndIf If Int Min# = 15 Then EntityTexture IBIS_Verfruehung, Zahl2 EndIf If Int Min# = 16 Then EntityTexture IBIS_Verfruehung, Zahl1 EndIf If Int Min# = 17 Then EntityTexture IBIS_Verfruehung, Zahl0 EntityTexture IBIS_Verspaetung, Zahl0 EndIf If Int Min# = 18 Then EntityTexture IBIS_Verspaetung, Zahl1 EndIf If Int Min# = 19 Then EntityTexture IBIS_Verspaetung, Zahl2 EndIf If Int Min# = 20 Then EntityTexture IBIS_Verspaetung, Zahl3 EndIf schreibt man besser so: Code: [AUSKLAPPEN] Select Int(Min#)
Case 14 EntityTexture IBIS_Verfruehung, Zahl3 Case 15 EntityTexture IBIS_Verfruehung, Zahl2 Case 16 EntityTexture IBIS_Verfruehung, Zahl1 Case 17 EntityTexture IBIS_Verfruehung, Zahl0 EntityTexture IBIS_Verspeatung, Zahl0 Case 18 EntityTexture IBIS_Verspeatung, Zahl1 Case 19 EntityTexture IBIS_Verspeatung, Zahl2 Case 20 EntityTexture IBIS_Verspeatung, Zahl3 End Select |
||
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group