SetPlayerPosFindZ
From SA-MP Wiki
(Difference between revisions)
Revision as of 21:22, 10 May 2012 Smithy (Talk | contribs) (Added OnPlayerClickMap as related function) ← Previous diff |
Revision as of 18:47, 4 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|This sets the players position then adjusts the players z-coordinate to the nearest solid ground under the position.}} | {{Description|This sets the players position then adjusts the players z-coordinate to the nearest solid ground under the position.}} | ||
Line 23: | Line 22: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:SetPlayerPosFindZ]] |
Revision as of 18:47, 4 February 2014
Description:
This sets the players position then adjusts the players z-coordinate to the nearest solid ground under the position.
(playerid, Float:x, Float:y, Float:z)
playerid | The ID of the player to set the position of. |
Float:x | The X coordinate to position the player at. |
Float:y | The X coordinate to position the player at. |
Float:z | The Z coordinate to position the player at. |
Return Values:
This function does not return any specific values.
SetPlayerPosFindZ(playerid, 1567.0, 1252.0, 80.0);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetPlayerPos: Set a player's position.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerClickMap: Called when a player sets a waypoint/target on the pause menu map.