SetVehiclePos FR
From SA-MP Wiki
(Difference between revisions)
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
Page d'Accueil | Les Fonctions | Les Callbacks | Les bases du Scripting | Plugins de Serveur | Tutoriaux
Ne prenez pas en compte les FR dans les noms
Description:
Modifier la position d'un véhicule
(vehicleid, Float:x, Float:y, Float:z)
vehicleid | Vehicle ID that you want set new position. |
Float:x | The X coordinate to position the vehicle at. |
Float:y | The Y coordinate to position the vehicle at. |
Float:z | The Z coordinate to position the vehicle at. |
Retourne | Cette 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.
- SetPlayerPos: Modifier la position d'un joueur
- GetVehiclePos: Récupérer la position d'un joueur
- SetVehicleZAngle: Modifier l'angle Z d'un véhicule