Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Attach gondel to arm won't work #216956
07/20/08 11:04
07/20/08 11:04
Joined: Jul 2008
Posts: 14
The Netherlands
W
Warkey Offline OP
Newbie
Warkey  Offline OP
Newbie
W

Joined: Jul 2008
Posts: 14
The Netherlands
Hi everybody, i has got 2 models. The gondel, and them arm.
The gondel needs to attached to the arm, with the function Vec_for_vertex but won't work.
Here's my code:

Code:
VECTOR* temp_b;

ENTITY* arm;
ENTITY* gondel;

action arm()
{
		arm = me;
		set(my,PASSABLE);
		vec_for_vertex(&temp_b,my,49);
}

action gondel()
{
		gondel = me;
		set(my,PASSABLE);
		vec_for_vertex(&temp_b,arm,1);
		my.x = &temp_b.x;
                my.y = &temp_b.y;
       		my.z = &temp_b.z;
		
	
}


When i run my project, the gondel will be placed very high in the air, and on the left side inside the holow cube..
Can someone help me to fix my problem? Or did i script it wrong?

Best Regards,
Warkey

Re: Attach gondel to arm won't work [Re: Warkey] #216990
07/20/08 16:22
07/20/08 16:22
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
action arm()
{
arm = me;
set(my,PASSABLE);
//vec_for_vertex(&temp_b,my,49);//for what?
}

action gondel()
{
gondel = me;
set(my,PASSABLE);
while(arm == NULL){wait(1);}
while(my !=NULL)
{
vec_for_vertex(&temp_b,arm,1);
my.x = &temp_b.x;
my.y = &temp_b.y;
my.z = &temp_b.z;
wait(1);
}

}


"empty"
Re: Attach gondel to arm won't work [Re: flits] #216994
07/20/08 16:50
07/20/08 16:50
Joined: Jul 2008
Posts: 14
The Netherlands
W
Warkey Offline OP
Newbie
Warkey  Offline OP
Newbie
W

Joined: Jul 2008
Posts: 14
The Netherlands
Tested, but when i start the engine, it says 'Crash in gondel'.
So, don't know how to fix.

And, the gondel is placed again, on the top left side inside the holow cube.

Re: Attach gondel to arm won't work [Re: Warkey] #217020
07/20/08 20:24
07/20/08 20:24
Joined: Jul 2008
Posts: 14
The Netherlands
W
Warkey Offline OP
Newbie
Warkey  Offline OP
Newbie
W

Joined: Jul 2008
Posts: 14
The Netherlands
Problem solved!


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

Gamestudio download | 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