From 518760e3e40bc7befcf83313da85d217528c5be9 Mon Sep 17 00:00:00 2001 From: Nerman <112647019+NermanLegacy@users.noreply.github.com> Date: Mon, 15 Jan 2024 13:09:32 +0100 Subject: [PATCH] Translate SetPlayerObjectMoveSpeed in to Bosnian --- .../functions/SetPlayerObjectMoveSpeed.md | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docs/translations/bs/scripting/functions/SetPlayerObjectMoveSpeed.md diff --git a/docs/translations/bs/scripting/functions/SetPlayerObjectMoveSpeed.md b/docs/translations/bs/scripting/functions/SetPlayerObjectMoveSpeed.md new file mode 100644 index 000000000..85c5ef6d6 --- /dev/null +++ b/docs/translations/bs/scripting/functions/SetPlayerObjectMoveSpeed.md @@ -0,0 +1,39 @@ +--- +title: SetPlayerObjectMoveSpeed +description: Postavi brzinu kretanja player-objekta. +tags: ["player", "object", "playerobject"] +--- + + + +## Deskripcija + +Postavi brzinu kretanja player-objekta. + +| Ime | Deskripcija | +|-------------|-----------------------------------------------------------| +| playerid | ID igrača. | +| objectid | ID player-objekta kojem se seta brzina kretanja. | +| Float:speed | Brzina kojom će se objekat kretati (jedinica u sekundi). | + +## Returnovi + +`true` - Funkcija uspješno izvršena. + +`false` - Funkcija neuspješno izvršena. Navedeni objekat ne postoji. + +## Primjeri + +```c +new playerobjectid = CreatePlayerObject(playerid, 985, 1003.39154, -643.33423, 122.35060, 0.00000, 1.00000, 24.00000); +MovePlayerObject(playerid, playerobjectid, 1003.3915, -643.3342, 114.5122, 0.8); + +SetPlayerObjectMoveSpeed(playerid, playerobjectid, 1.5); +// Brzina kretanja je promijenjena sa 0.8 na 1.5 +``` + +## Srodne Funkcije + +- [MovePlayerObject](MovePlayerObject): Pomjeri player objekat na novu poziciju zadanom brzinom. +- [GetPlayerObjectMoveSpeed](GetPlayerObjectMoveSpeed): Dobij brzinu kretanja player-objekta. +- [SetObjectMoveSpeed](SetObjectMoveSpeed): Postavi brzinu kretanja objekta.