Posts: 60
Threads: 23
Joined: Sep 2011
Reputation:
0
Hi guys!
GetPlayerVelocity(playerid, X, Y, Z);
SetPlayerVelocity(giveplayer, X, Y, Z);
Why giveplayerid doesn't go to my position?
The script is put in OnplayerUpdate.
Thanks!
Posts: 130
Threads: 12
Joined: Jan 2012
Reputation:
0
Try to use playerid not giveplayer
Posts: 60
Threads: 23
Joined: Sep 2011
Reputation:
0
Ehm, i need drag a giveplayerid...
GetPlayerPos and SetPlayerPos work, but i need velocity function for Animation..
How i can? Thanks!
Posts: 130
Threads: 12
Joined: Jan 2012
Reputation:
0
Can you see? I said that to use playerid not giveplayer.
Posts: 60
Threads: 23
Joined: Sep 2011
Reputation:
0
The code is too long..
I with a Comand, set the Player that i need Drag. (/Drag PlayerID)
For Ex: /Drag 1
In OnplayerUpdate, if Drag Var (Drag[playerid]) is != 0, i use this Code:
(Drag[playerid] is the GivePlayerID)
SetPlayerInterior(Drag[playerid], GetPlayerInterior(playerid));
SetPlayerVirtualWorld(Drag[playerid], GetPlayerVirtualWorld(playerid));
GetPlayerFacingAngle(playerid, A); SetPlayerFacingAngle(Drag[playerid], A);
* GetPlayerVelocity(playerid, X, Y, Z); SetPlayerVelocity(Drag[playerid], X, Y, Z);
* = Doesn't work
But if i Use..
GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(Drag[playerid], X, Y, Z); WORK!
But i need use Velocity Function, why doesn't work? Thanks!
PS: The giveplayerid don't change the pos..