Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,280 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
vec_for_vertex (Vertex changed everytime) #416027
01/27/13 12:37
01/27/13 12:37
Joined: Oct 2011
Posts: 21
O
oODarkPassionOo Offline OP
Newbie
oODarkPassionOo  Offline OP
Newbie
O

Joined: Oct 2011
Posts: 21
Hello everyone,

i've got a new problem.

on the first picture you see the particle effect of the lower skull. See arrow.


The second picture shows where the particle effect should be.
Face 100.



Now the code:

Code:
action Schaedel()
{
	set(my, LIGHT);
	my.red = 255;
	my.green = 0;
	my.blue = 0;
	my.lightrange = 100;
	
	vec_for_vertex(enemy_effect1,my,100);
	ent_create(NULL,enemy_effect1,Base_Fireeye_emitter);
	
	c_scan(my.x,my.pan, vector(120,60,400), IGNORE_ME | SCAN_ENTS |SCAN_LIMIT);
		if(you == player)
		{
			if(vec_dist(player.x,my.x) > 400)	// Der Gegner ist noch nicht nah genug am Spieler
				{
					vec_set(temp,player.x);
					vec_sub(temp,my.x);
					vec_to_angle(my.pan,temp);
					c_move(my,vector(10*time_step,0,0), nullvector, IGNORE_PASSABLE | GLIDE);
					//ent_animate(my,"walk", anim_percentage,ANM_CYCLE);
					//anim_percentage += 5* time_step;
				}
				else
				{
					vec_set(temp, player.x);
					vec_sub(temp, my.x);
					vec_to_angle(my.pan,temp);
					my.tilt = 0;
					//skelett_caster_attack();
				}
			wait(1);	
		}
}



i have no idea whats wrong here. Why isn't the particle effect created on Face 100?

Thank you

Re: vec_for_vertex (Vertex changed everytime) [Re: oODarkPassionOo] #416033
01/27/13 13:21
01/27/13 13:21
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
vec_for_vertex returns the position of a vertex, not a face.
go to vertex mode in MED and then select a vertex at the wanted location. take this number and it should work


Visit my site: www.masterq32.de
Re: vec_for_vertex (Vertex changed everytime) [Re: MasterQ32] #416035
01/27/13 13:35
01/27/13 13:35
Joined: Oct 2011
Posts: 21
O
oODarkPassionOo Offline OP
Newbie
oODarkPassionOo  Offline OP
Newbie
O

Joined: Oct 2011
Posts: 21
Thank you, it works laugh


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