Object angle
#7

Quote:
Originally Posted by ziomal396
I think that the command should look like this:

Код:
if (strcmp(cmd, "/roadblock", true) == 0)
{
	new Float:x, Float:y, Float:z, Float:a;
	GetPlayerPos(playerid, x, y, z);
	GetPlayerFacingAngle(playerid, a);

	CreateObject(981, x, y, z, 0, 0, a);
	SetPlayerPos(playerid, x, y, z + 20);
	return 1;
}
With this you're going to make object's z rotation same as player's angle..
Reply


Messages In This Thread
Object angle - by JoeDaDude - 12.06.2009, 17:51
Re: Object angle - by Correlli - 12.06.2009, 17:53
Re: Object angle - by JoeDaDude - 12.06.2009, 17:54
Re: Object angle - by Correlli - 12.06.2009, 17:56
Re: Object angle - by GTA_Rules - 12.06.2009, 18:13
Re: Object angle - by ziomal396 - 12.06.2009, 18:17
Re: Object angle - by Correlli - 12.06.2009, 18:30
Re: Object angle - by ziomal396 - 12.06.2009, 18:32
Re: Object angle - by Correlli - 12.06.2009, 18:33
Re: Object angle - by yom - 12.06.2009, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)