SetVehiclePos FR

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:25, 6 January 2013
Connor Mead (Talk | contribs)

← Previous diff
Revision as of 17:20, 2 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 21: Line 21:
{{RelatedFunctionsFR}} {{RelatedFunctionsFR}}
-*[[SetPlayerPos_FR|SetPlayerPos:]] Modifier la position d'un joueur+{{SetPlayerPos_FR}}
-*[[GetVehiclePos_FR|GetVehiclePos:]] Récupérer la position d'un joueur+{{GetVehiclePos_FR}}
-*[[SetVehicleZAngle_FR|SetVehicleZAngle:]] Modifier l'angle Z d'un véhicule+{{SetVehicleZAngle_FR}}
[[Category:Scripting Functions FR]] [[Category:Scripting Functions FR]]

Revision as of 17:20, 2 February 2014




Description:

Modifier la position d'un véhicule


Image:32px-Circle-style-warning.png

Note
Importante

Un véhicule vide ne tombera pas si il est téléporté en l'air.



Paramètres:
(vehicleid, Float:x, Float:y, Float:z)
vehicleidVehicle ID that you want set new position.
Float:xThe X coordinate to position the vehicle at.
Float:yThe Y coordinate to position the vehicle at.
Float:zThe Z coordinate to position the vehicle at.


RetourneCette fonction ne retourne pas de valeur spécifique.


//Mettre le véhicule aux coordonnés 0, 0, 3 (Centre de GTA:SA)
new vehicleid = GetPlayerVehicleID(playerid);
SetVehiclePos(vehicleid, 0, 0, 3);

Fonctions Relatives

Les fonctions suivantes peuvent être utiles car elles sont indirectement ou directement liées a cette fonction.