Skip to content

Commit

Permalink
Merge pull request #829 from NermanLegacy/patch-5
Browse files Browse the repository at this point in the history
Translate SetPlayerObjectMoveSpeed in to Bosnian
  • Loading branch information
adib-yg authored Jan 15, 2024
2 parents 96e1427 + 518760e commit 1a54618
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: SetPlayerObjectMoveSpeed
description: Postavi brzinu kretanja player-objekta.
tags: ["player", "object", "playerobject"]
---

<VersionWarn version='omp v1.1.0.2612' />

## 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.

0 comments on commit 1a54618

Please sign in to comment.