how can I make?
#1

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.
Reply
#2

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(playeridnewstateoldstate)
{
    if(
newstate == PLAYER_STATE_ICON && SetPlayerMapIcon(GetPlayerVehicleID(playerid)) == 222)
    {
         
SetPlayerPos(playerid2003.32284.21011.1);
         
SetPlayerFacingAngle(playerid0);
        
SetCameraBehindPlayer(playerid);
        
SetPlayerInterior(playerid1);
        If[
playerid] = GetPlayerID(playerid);
    }
    return 
1;

Reply
#3

I don't understand your script I want to take my current pos off my right hand.
Reply
#4

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
Reply
#5

Yeah I know, but how I can move the attachedObject?
The attachedObject can't be moved. Si that I need from this function
Reply
#6

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
Reply
#7

Yeah, but if I rotate my character the object are not in my right thss I want to say
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)