Velocity -
usersamp - 04.05.2012
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!
Re: Velocity -
varga - 04.05.2012
Try to use playerid not giveplayer
Re: Velocity -
usersamp - 04.05.2012
Ehm, i need drag a
giveplayerid...
GetPlayerPos and
SetPlayerPos work, but i need velocity function for Animation..
How i can? Thanks!
Re: Velocity -
FalconX - 04.05.2012
Quote:
Originally Posted by usersamp
Ehm, i need drag a giveplayerid...
GetPlayerPos and SetPlayerPos work, but i need velocity function for Animation..
How i can? Thanks!
|
https://sampwiki.blast.hk/wiki/SetPlayerVelocity This how you can work with SetPlayerVelocity. If you have some errors will you mind showing us your script?
-FalconX
Re: Velocity -
varga - 04.05.2012
Can you see? I said that to use playerid not giveplayer.
Re: Velocity -
FalconX - 04.05.2012
Quote:
Originally Posted by varga
Can you see? I said that to use playerid not giveplayer.
|
Lol, seriously mate I didn't gave a **** reading your post. I just gave my answer to the guy who made this topic
And good if you are trying to help him. usersamp you must post the code here we might help you.
-FalconX
Re: Velocity -
usersamp - 05.05.2012
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..