Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
vec_for_vertex problem #274000
06/25/09 09:33
06/25/09 09:33
Joined: Jun 2009
Posts: 4
G
goya Offline OP
Guest
goya  Offline OP
Guest
G

Joined: Jun 2009
Posts: 4
(Sry I speak german)


I would like 2 pieces together with vex_for_vertex . (Vector * vector, * ENTITY entity, var number)
Can I put the name of my entity?

(Vector * vector, arm.mdl, var number)

And waht is Vector and Var number?

Re: vec_for_vertex problem [Re: goya] #274036
06/25/09 12:36
06/25/09 12:36
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
HI!

Yes, you have to put the name of your entity
and
the vectors are that of your object to the entity position
to be set with vec_set ()

PS : You can ask your questions in German, many do.

Last edited by Ottawa; 06/25/09 12:37.

Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: vec_for_vertex problem [Re: Ottawa] #274047
06/25/09 13:33
06/25/09 13:33
Joined: Jun 2009
Posts: 4
G
goya Offline OP
Guest
goya  Offline OP
Guest
G

Joined: Jun 2009
Posts: 4
ok.my code now is:
__________________________________________________________
action arm
{
while(1);
{
vex_for_vertex(-31,1,-12, entity*arm, 123);
vec_set(my.pos,temp);

}
wait(1)
}
_________________________________________________________

Where I have to put the three xyz?and what is temp?Can you show a example,please?


Auf Deutsch..
Wie schon oben hab ich jetzt diesen code aber mir fehlen noch Sachen drinne.Und beim laden kommt immer ein Fehler!Währe nett wenn einer mir vielleicht ein Beispiel nennt und dabei auch gleich sagt was das alles bedeutet was drin steht.Und woher man diese angaben nehmen kann.

Re: vec_for_vertex problem [Re: goya] #274048
06/25/09 13:38
06/25/09 13:38
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Ok, so müsste dein Code aussejen:

ENTITY* arm;

action arm()
{
arm = me;
}

Und in der Aktion der Entity, an die der Arm soll:

while(1)
{
vec_for_vertex(arm.x,my,123);
wait(1);
}

Die Entity-Definition am Anfang erstellt einen Pointer, sozusagen ein Synonym, das in der Arm.Aktion diesem zugewiesen wird, so dass vec_for_vertex darauf zugreifen kann.

Verstanden? Sonst frag noch mal. grin



Last edited by the_clown; 06/25/09 13:40.
Re: vec_for_vertex problem [Re: the_clown] #274050
06/25/09 13:42
06/25/09 13:42
Joined: Jun 2009
Posts: 4
G
goya Offline OP
Guest
goya  Offline OP
Guest
G

Joined: Jun 2009
Posts: 4
ich weiß langsam wird es peinlich mit meinem Verständnis aber 3 Fragen hätte ich da noch.Sorry

vertex(arm.x,my,123);

^^wofür steht das (.x) kann ich das my stehen lassen und was ist 123?

Re: vec_for_vertex problem [Re: goya] #274053
06/25/09 13:53
06/25/09 13:53
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
"arm" ist ein Entity mit .x greift man auf die absolute Position (X,Y,Z) des Objektes im Level zu...
vertex_for_vertex(arm.x,my,123);
heißt also das der Ursprung des Entitys "arm" an die Position des Vertex Nr 123 von "my" gesetzt wird. My ist wiederrum der Pointer(Verweiß) auf das Entity in dessen Action der Code gerade steht.

Re: vec_for_vertex problem [Re: goya] #274054
06/25/09 13:54
06/25/09 13:54
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Also, das .x steht für den x-Wert eines Vektors, nämlich der Position der arm-Entity. Immer, wenn du arm.x schreibst, beziehst du dich dabei auf die Welt-Koordinaten der Entity, der der pointer "arm" zugewiesen ist.
Das my kannst du stehen lassen, das ist der Bezug zu der Entity, deren Vertex als Position genommen wird.
Und das 123 ist einfach ein Beispiel, ersetze das durch die Nummer des Vertexes, an den du den Arm ansetzen willst. smile

Re: vec_for_vertex problem [Re: the_clown] #274114
06/25/09 18:42
06/25/09 18:42
Joined: Jun 2009
Posts: 4
G
goya Offline OP
Guest
goya  Offline OP
Guest
G

Joined: Jun 2009
Posts: 4
Ja jetzt habe ich es verstanden aber immer und immer wieder entstehen Error.Hier habe ich mal ein Screen von dem gemacht was ich vorhabe damit es nicht so abstrakt bleibt.Die Drehung vom Kreuz habe ich einfach per ent_rotade rein gemacht und am ende des Kreuzes möchte ich halt die Gondeln aufhängen und die sollen sich mitdrehen und sich selber nochmal um die eigene Achse was ich auch mit einer vorgefertigten aktion gemacht habe.Eigentlich wollte ich dieses Teil auch steuerbar machen aber es scheitert ja schon beim anbringen der Gondeln.
http://www.LupiUpload.de/file.php?dat=mADPZxVc.bmp


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1