Перейти к содержанию

Player::simulatePlayerInputGait

Материал из RAGE MP Wiki Archive
Версия от 19:47, 8 декабря 2020; imported>Krotter
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This is to make the player walk without accepting input from INPUT.

gaitType is in increments of 100s. 2000, 500, 300, 200, etc.

p4 is always 1 and p5 is always 0.

C# Example :

Function.Call(Hash.SIMULATE_PLAYER_INPUT_GAIT, Game.Player, 1.0f, 100, 1.0f, 1, 0); //Player will go forward for 100ms

Syntax

<syntaxhighlight lang="javascript">mp.game.player.simulatePlayerInputGait(speed, time, heading, headingRelativeToPed, notCancellable);</syntaxhighlight>

Required Arguments

  • speed: float
  • time: int
  • heading: float
  • headingRelativeToPed: Boolean
  • notCancellable: Boolean

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also