how can I make? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how can I make? (
/showthread.php?tid=586661)
how can I make? -
zeth98 - 23.08.2015
Hi, how can I make to get the player pos of the hand I want to move an object to player hand. So how can take the pos without have problems because of fancyangle?
To explain I want to take the red point pos of the player, that want to be in right of player.
AW: how can I make? -
MrGtasagamer - 23.08.2015
Quote:
Originally Posted by zeth98
Hi, how can I make to get the player pos of the hand I want to move an object to player hand. So how can take the pos without have problems because of fancyangle?
To explain I want to take the red point pos of the player, that want to be in right of player.
|
Try this:
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_ICON && SetPlayerMapIcon(GetPlayerVehicleID(playerid)) == 222)
{
SetPlayerPos(playerid, 2003.3, 2284.2, 1011.1);
SetPlayerFacingAngle(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 1);
If[playerid] = GetPlayerID(playerid);
}
return 1;
}
Re: how can I make? -
zeth98 - 23.08.2015
I don't understand your script
I want to take my current pos off my right hand.
AW: Re: how can I make? -
Kaliber - 23.08.2015
Quote:
Originally Posted by zeth98
I don't understand your script I want to take my current pos off my right hand.
|
Just let the object move slow to you and then use
SetPlayerAttachedObject with
boneid 6
Re: how can I make? -
zeth98 - 23.08.2015
Yeah I know, but how I can move the attachedObject?
The attachedObject can't be moved. Si that I need from this function
AW: Re: how can I make? -
Kaliber - 23.08.2015
Quote:
Originally Posted by zeth98
Yeah I know, but how I can move the attachedObject?
The attachedObject can't be moved. Si that I need from this function
|
It can be moved...by editing with a timer the offsets..
But i know what you mean...but u didnt get me...
You should use MoveObject...to the x,y,z Pos of the player...and when it finished...just attach it...so the object should move in the last step to the right position
Re: how can I make? -
zeth98 - 24.08.2015
Yeah, but if I rotate my character the object are not in my right thss I want to say