detect if a object is behind of you?
#4

i made this command you could try out you can replace the object as createpickup
Код:
	if(strcmp(cmdtext, "/objects", true) == 0)
	{
	new Float:xnob,Float:ynob,Float:znob;
	GetPlayerPos(playerid,xnob,ynob,znob);
	GetXYInFrontOfPlayer(playerid,xnob,ynob,0.5);
	CreateObject(1375,xnob,ynob,znob,0,0,0,1.0);
	GetXYBehindPlayer(playerid,xnob,ynob,0.5);
	CreateObject(1375,xnob,ynob,znob,0,0,0,1.0);
		return 1;
	}
obviously it creates objects in front and behind you
Reply


Messages In This Thread
detect if a object is behind of you? - by The_Gangstas - 27.11.2010, 14:29
Re: detect if a object is behind of you? - by boelie - 27.11.2010, 14:48
Re: detect if a object is behind of you? - by The_Gangstas - 27.11.2010, 19:54
Re: detect if a object is behind of you? - by boelie - 27.11.2010, 20:09
Re: detect if a object is behind of you? - by The_Gangstas - 27.11.2010, 20:18
Re: detect if a object is behind of you? - by boelie - 27.11.2010, 20:19
Re: detect if a object is behind of you? - by The_Gangstas - 27.11.2010, 20:49

Forum Jump:


Users browsing this thread: 1 Guest(s)