Velocity
#1

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

Try to use playerid not giveplayer
Reply
#3

Ehm, i need drag a giveplayerid...
GetPlayerPos and SetPlayerPos work, but i need velocity function for Animation..
How i can? Thanks!
Reply
#4

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

Can you see? I said that to use playerid not giveplayer.
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)