SetVehiclePos FR

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 03:57, 5 January 2013
Connor Mead (Talk | contribs)

← Previous diff
Revision as of 19:25, 6 January 2013
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
 +{{ScriptingFR}}
 +{{Title}}
 +
 +{{Description|Modifier la position d'un véhicule}}
 +
 +{{Note2FR|Un véhicule vide ne tombera pas si il est téléporté en l'air.}}
 +
 +{{ParametersFR|vehicleid, Float:x, Float:y, Float:z}}
 +{{Param|vehicleid|Vehicle ID that you want set new position.}}
 +{{Param|Float:x|The X coordinate to position the vehicle at.}}
 +{{Param|Float:y|The Y coordinate to position the vehicle at.}}
 +{{Param|Float:z|The Z coordinate to position the vehicle at.}}
 +
 +{{NoReturnFR}}
 +
 +<pawn>
 +//Mettre le véhicule aux coordonnés 0, 0, 3 (Centre de GTA:SA)
 +new vehicleid = GetPlayerVehicleID(playerid);
 +SetVehiclePos(vehicleid, 0, 0, 3);
 +</pawn>
 +
 +{{RelatedFunctionsFR}}
 +*[[SetPlayerPos_FR|SetPlayerPos:]] Modifier la position d'un joueur
 +*[[GetVehiclePos_FR|GetVehiclePos:]] Récupérer la position d'un joueur
 +*[[SetVehicleZAngle_FR|SetVehicleZAngle:]] Modifier l'angle Z d'un véhicule
 +
[[Category:Scripting Functions FR]] [[Category:Scripting Functions FR]]

Revision as of 19:25, 6 January 2013




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.