Objects!
#7

Quote:
Originally Posted by Juvanii
Посмотреть сообщение
What code are you talkin about? All the problem is: i can't control the facing angle of the player to create an object in front of him with the correct object's rotations.

It worked after i subtract 1 from the float X and Y but when the player is looking at north or south, the object is created behind the player.

Edit: @Mionee should i use this under the command with getting the player's floats first?
Yes, you do it like this:

pawn Код:
new Float: pX, Float: pY, Float: pZ;
GetPlayerPos(playerid, X, Y, Z);
GetXYInfrontOfPlayer(playerid, X, Y, 5.0);
As demonstrated here: https://sampwiki.blast.hk/wiki/Stocks#Re...ultiple_values (src: https://sampforum.blast.hk/showthread.php?tid=510662)
Reply


Messages In This Thread
Objects! - by Juvanii - 09.08.2014, 15:32
Re: Objects! - by Virtual1ty - 09.08.2014, 15:52
Re: Objects! - by Dignity - 09.08.2014, 15:58
Re: Objects! - by Juvanii - 09.08.2014, 16:01
Re: Objects! - by Pottus - 09.08.2014, 16:04
Re: Objects! - by Juvanii - 09.08.2014, 16:15
Re: Objects! - by Dignity - 09.08.2014, 16:20
Re: Objects! - by Juvanii - 09.08.2014, 16:28
Re: Objects! - by Dignity - 09.08.2014, 16:30
Re: Objects! - by Pottus - 09.08.2014, 16:53

Forum Jump:


Users browsing this thread: 2 Guest(s)