hat den keiner ne idee warum das:
(komplette Funktion BuildPath() ein Post vorher | whole function BuildPath() above in a further post)
Code:
action PathTile(){
	set(my,DECAL);
	my.pan = 0;
	my.roll = 0;
	my.tilt = 90;
	my.z = 50;
	SnapIt();
}
function BuildPath(){
.
.
if(NodeCheck()){
			vector1.x = BlueSquare.x;
			vector1.y = BlueSquare.y;
			vector1.z = 100;
			vector2.x = vector1.x;
			vector2.y = vector1.y;
			vector2.z = 0;
			c_trace(vector1, vector2, IGNORE_PASSABLE);
			ent_remove(you); //<-- problem
			NodeFill(0);
		}
}


nicht funktioniert, na gut es funktioniert schon, die Entity wird enfternt aber das Objekt bleibt optisch da..
Nehm ich "ptr_remove(you);" ist das Ergeniss das selbe nur ohne den "invalid arguments"-Fehler

has no one an idea why this doesn't working? (code above)
Ok, it's working, somehow, it delete the entity but it is still there, visual, at the codeside it is deleted (recognizable by an beep). At the same time an error-window open with the message: "invalid arguments in BuildPath". if I use "ptr_remove(you);" instead of "ent_remove(you);" is it the same but without an error message

interessting it works fine if the object is not an bmap for example a 3D-objekt (for example a .mdl-file)

interessant es funktioniert wenn es sich nicht um ein BMAP-Objekt handelt sondern um ein 3D-Objekt z.B. eine MDL-Datei

mfg
Tj

Last edited by Todesjoker; 06/19/11 18:00.