[Help]Get location

Posts 1–7 of 7 · Page 1 of 1
[Help]Get location
I don't wanna come over like some beg newb, but is there anyone that know how to get the current location of a player or however they get the X Y Z?

For example in this mod there was this code: (No Hope ZombieMod by Nukem)
Code:
carepack = spawn("script_model", (2850, 164, 165) ); 
carepack setModel( "com_plasticcase_friendly" );
carepack Solid();
carepack CloneBrushmodelToScriptmodel( level.airDropCrateCollision );

carepack2 = spawn("script_model", (2850, 132, 146) ); 
carepack2 setModel( "com_plasticcase_friendly" );
carepack2 Solid();
carepack2 CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
Theres like 100 more codes of those, but I want to know how they/he achieved the red marked part.

Thanks in advance.
It's the parameters of the func...
Okay okay, and how to get those numbers?
Code:
doPrintLocation()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("5", "+actionslot 2");
	while ( 1 ) 
	{
	self waittill("5");   
	self iPrintLnBold(self.origin);
	wait 1;
	}
}
Thanks to Nukem for the code "self.origin".
This will print out ur current location on the screen.

*Sorry for doubleposting!*
Quote Originally Posted by Kyouki View Post
Code:
doPrintLocation()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("5", "+actionslot 2");
	while ( 1 ) 
	{
	self waittill("5");   
	self iPrintLnBold(self.origin);
	wait 1;
	}
}
Thanks to Nukem for the code "self.origin".
This will print out ur current location on the screen.

*Sorry for doubleposting!*

euhm where do i have to put that code to get the location i'm a complete noob in coding and i'm trying to do some smal things to put barriers but i don't know how to start on it
or use mw 2 configuration utility.. Theres 1 app on it that shows ur exact location on teh map >_>
*It's settles at the Graphics*
What would be great is.....if you posted this shit in the server modding section. THANKS
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us