Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (mayarik, clint000), 7,278 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Pls, I really need some codes.... #390291
12/26/11 02:40
12/26/11 02:40
Joined: May 2010
Posts: 23
M
Mandeville Offline OP
Newbie
Mandeville  Offline OP
Newbie
M

Joined: May 2010
Posts: 23


I want a car to go down the street. When the car is at the end of the street, I want him to be teleport at the start point. I tried so many crazy things, please help me!

There is my action for the car;




Code:
Code:action car()
{	
my.emask |= ENABLE_IMPACT;   

	ENTITY* enemy = NULL; // spell target
	my.STATE = 1;
	VECTOR vFeet;
	vec_for_min(vFeet,me); // vFeet.z = distance from player origin to lowest vertex
	VECTOR move_me;
	while(1)
	{



	

	
			VECTOR target_node_pos;
			
			var temp;
			var target_node_num = 1;//start at node 1

			path_set(me,"path_000");
			path_nextnode(my,1,1);
			path_getnode(me,1,target_node_pos.x,NULL);
		

			 into target_node_pos		
		
			
		
		
		
			
			move_me.x = 0.25;
			c_trace(my.x,vector(my.x,my.y,my.z-1000),IGNORE_ME | IGNORE_PASSENTS);
			my.z = hit.z - vFeet.z; // always place player's feet on the ground
			c_move(me,vector(move_me.x,0,0),NULL, GLIDE);
	
					

	
			wait(1);	



		


	}
	 	
}



Now how should I insert this line when the car have finish his path?




Code:
Code:ent_remove(me);
				ent_create("car1.mdl",vector(-260,165,-



Re: Pls, I really need some codes.... [Re: Mandeville] #390293
12/26/11 06:55
12/26/11 06:55
Joined: May 2010
Posts: 23
M
Mandeville Offline OP
Newbie
Mandeville  Offline OP
Newbie
M

Joined: May 2010
Posts: 23
Nevermind, i get it!


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