Posts: 145
Threads: 29
Joined: Mar 2013
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;
}
Posts: 85
Threads: 20
Joined: Jul 2014
Reputation:
0
Yeah I know, but how I can move the attachedObject?
The attachedObject can't be moved. Si that I need from this function
Posts: 85
Threads: 20
Joined: Jul 2014
Reputation:
0
Yeah, but if I rotate my character the object are not in my right thss I want to say